DEV Community

Cover image for Solve The Cold Start Issue with Lambda Provisioned Concurrency
Renato Byrro
Renato Byrro

Posted on • Originally published at

Solve The Cold Start Issue with Lambda Provisioned Concurrency

Originally published in Dashbird Blog

Cold Starts have been a massive issue with FaaS. In summary, it makes functions slower to startup in some cases. That's in the opposite way of every effort to improve web applications performance.

Many efforts have been made in the recent years to solve AWS Lambda cold starts or educate on handling them. Many have mitigated the issue, but none really solved it.

AWS has just made a great progress on the area with the Provisioned Capacity feature announcement. As the function scales up, instead of waiting new requests to come in before provisioning resources to serve them, AWS will proactively provision new instances of the function in advance.

This behavior guarantees the performance of every request will stay within double digit milliseconds, up to the Provisioned Concurrency threshold set to the function. There are some caveats that developers should be aware though. For example: it makes your functions inelligible to the Lambda Free Tier.

Here is a detailed and step-by-step guide to learn everything about this feature

Lambda Provisioned Concurrency is generally available in several regions and already integrated with AWS SAM, CodeDeploy and other serverless frameworks.

Image credits to Denys Nevozhai on Unsplash.

Top comments (0)