r/awslambda • • Jan 31 '22

I made a cheat sheet about my favorite AWS Service

Post image
31 Upvotes

r/awslambda • • May 19 '21

How to run a health check on your AWS serverless environment with Stackoscope

11 Upvotes

r/awslambda • • Dec 01 '20

New for AWS Lambda – Container Image Support | Amazon Web Services

Thumbnail
aws.amazon.com
10 Upvotes

r/awslambda • • Apr 18 '20

serverless redis

10 Upvotes

We saw so many people asking Redis for their serverless stack. Unfortunately all cloud providers serve Redis with `per instance/memory` model.

So we decided to solve this and started working. We have just launched lambda.store. It is `serverless redis as a service`. We have a free tier and then charge per request. Right now it is AWS only.

Waiting your feedback and questions

https://medium.com/@LambdaStore/serverless-redis-is-here-34c2fa335f24


r/awslambda • • Dec 04 '22

Default Lambda development experience seems atrocious or am I missing something

8 Upvotes

So im currently working on setting up lambdas using sam and this seems like an absolutely awful development experience.

I like to frequently run my code as im developing it.

However it seems I need to run a sam build + sam invoke every-time I make a change. Normally im used to tools like hot-reloading upon making a change.

Sam build is taking 10-20s to compile all my dependencies. Even on a small test project.

Is this the recommend development workflow for lambdas... or it just for sanity checking builds at the end of a cycle. What do you recommend for a more lightweight dev experience.


r/awslambda • • Mar 27 '22

10GB Ephemeral Storage for AWS Lambda

Thumbnail
medium.com
8 Upvotes

r/awslambda • • Apr 07 '21

Best practice for logging in AWS Lambda

8 Upvotes

We updated our guide on the best practices for logging AWS Lambda and thought we could use your input!

Some key points from the article:

  1. You can put logging statements in your code to validate that your code is working correctly and as expected.

  2. You need to be very careful about what you log and not forget to remove debugging log statements from your code when deploying to production.

  3. Refactor your log statements for CI/CD.

  4. Keep AWS’ egress traffic costs in mind. While it’s free to get data into AWS, you have to pay to get it out again.

  5. You can also buy reserved concurrency for the log shipping function, which will limit its maximum number of simultaneous executions.

  6. A more economical way to get your logs out of AWS would be to stream them from CloudWatch Logs to a Kinesis.

  7. Avoid is the manual process of subscribing to log groups from your shipping function.

  8. You can add another Lambda function that can automatically update the retention policy as to not keep them forever (and eating away at your costs).

  9. Use observability services like Dashbird (😉) so you can monitor without extra costs, and without slowing down your app with extra requests.

How does your current logging process look like?


r/awslambda • • Oct 25 '20

Lambda Execution Leaks: A Practical Guide

Thumbnail
medium.com
8 Upvotes

r/awslambda • • Oct 24 '20

Serverless: Simple CRUD Application in 10 minutes on AWS

Thumbnail
medium.com
8 Upvotes

r/awslambda • • Nov 05 '19

Lambda Cold Starts resolved with Docker Checkpoints

8 Upvotes

A Master Student developed a techniques and Go prototype tool to combat cold starts. It dumps app state (RAM) using docker checkpoints. https://www.imperial.ac.uk/media/imperial-college/faculty-of-engineering/computing/public/1819-ug-projects/StenbomO-Refunction-Eliminating-Serverless-Cold-Starts-Through-Container-Reuse.pdf The techniques should be especially effective for Python and other scripting language that have low cold start time to start instance, but take a lot of time to load larger libraries and frameworks.

The current 'best practice' is to keep lambda warm with a periodic ping, which works fine if your app does not need support simultaneous requests, from different users or same page. One can try to monitor lambda and ping as many times as needed like lamdba-warmer package does, but it increases the fees accordingly. Checkpoints seems more promising solution.


r/awslambda • • Jun 27 '19

How I Made Power Outage Notifications Using a Serverless Function for Free

Thumbnail
nlehman.dev
8 Upvotes

r/awslambda • • Dec 07 '25

Building a Serverless Ad Tracker: Scaling to Millions of Events and Back

7 Upvotes

r/awslambda • • Feb 22 '24

.NET 8 is now available for AWS Lambda!

7 Upvotes

r/awslambda • • Jun 09 '23

tinymo - an npm package making DynamoDB CRUD operations easier

Thumbnail
github.com
7 Upvotes

r/awslambda • • Aug 18 '22

Lambda duration is scaling with the amount of times I invoke it in parallel. Any ideas why?

7 Upvotes

Hey there, I'm not expecting a concrete answer but any ideas on why this is happening are welcome.

Objective: I'm testing the performance of one of my services. Wanted to benchmark how well it worked for different load capacities.

The service: It's a an AWS/lambda that loads data from a PostgreSQL database, performs some complex tasks and than writes to the database by the end.

Lambda Config: It's deployed with serverless, with a `maxConcurrency:240` and a `memorySize: 2048MB` which means the CPU has 2 cores.

Testing setup:

I created a simple script that creates a bunch of threads and starts them at the same time, each thread will invoke the lambda with the exact same parameters and wait for it to finish (`InvocationType='RequestResponse'`). I then measure how much time it takes between the invocation until the last lambda finishes execution.

I performed this experiment with several load capacities (in this context, more load simply means that i call the lambda more times), and several times for each load amount (10 to be exact - to make sure the results are consistent).

Results (unexpected behavior):

The results are displayed in the boxplot bellow (latency in seconds):

I can understand the duration being higher with 480 invocations since the max concurrency is at 240, but shouldn't all the other results be somewhere around the same duration? I've investigated further to ensure this wasn't a measuring error and I'm absolutely sure that the amount of times I invoke the lambda is influencing its duration.

I'm starting to think that this might be related with database accesses, but even so I checked and the maximum amount of connections of my database is set to 100 so it still doesn't justify some of these unexpected results.

I'm really running out of ideas for how I can identify and hopefully fix this scalability bottleneck, any ideas are welcome.

Thank you in advance!


r/awslambda • • Aug 09 '22

AWS Announced Tiered Pricing for Its Serverless Offering Lambda

Thumbnail
infoq.com
7 Upvotes

r/awslambda • • May 07 '22

they said serverless is easier and faster Spoiler

Post image
7 Upvotes

r/awslambda • • Apr 17 '22

AWS Step Functions Workflow - AWS SAM example

Thumbnail
marcoml.dev
7 Upvotes

r/awslambda • • Feb 18 '22

Using AWS Lambda and Golang to access real-time weather station data

Thumbnail
crodeon.com
7 Upvotes

r/awslambda • • Jan 07 '22

Top AWS Lambda metrics to monitor

7 Upvotes

r/awslambda • • Jan 07 '21

Deploying AWS Lambda with Docker Containers: I Gave it a Try and Here’s My Review

7 Upvotes

As everyone knows, AWS Lambda now supports Docker Containers. We tried it out and wrote a little review while we were at it (with ETL examples). You can read it here: https://dashbird.io/blog/deploying-aws-lambda-with-docker/


r/awslambda • • Dec 31 '20

AWS Lambda Terraform Cookbook with working examples

Thumbnail
github.com
7 Upvotes

r/awslambda • • Aug 05 '19

13 AWS Lambda design considerations

Thumbnail
rehanvdm.com
7 Upvotes

r/awslambda • • May 11 '23

Tracing and testing AWS Lambda

Thumbnail
tracetest.io
6 Upvotes