Best practices: AWS Lambda function

Locusnine Studios
Sep 22 · 8 min read

Understanding how AWS Lambda scales

Concurrent Invocations = events (or requests) per second * function duration (in secs)

Lambda configuration best practices

Choosing the right timeout

Choosing the ‘right’ size of the Lambda function

I will choose the minimum amount of memory that my function needs in any given execution to save maximum cost

I will choose to give the maximum allowed memory to my Lambda function so that it executes the fastest

Coding best practices

Low startup time

Stateless functions

Performance considerations

Logging

Cloudwatch is good and all, but I like my xyz log storage

Locusnine Studios

Written by

We are a social innovation studio adept at design and technology, not shy of exploring social, economic, cultural and environmental constructs & collaborations.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade