Modify the application or AWS service invoking the Lambda function You can change the Lambda version tied to a Lambda alias without modifying the applications using the Lambda function. While this is optional, creating a Lambda function alias makes the management operations easier. Optionally create a Lambda function aliasĪ Lambda function alias allows you to define a custom pointer, and control which Lambda version it is attached to. For more information, read the Lambda Developer Guide. Therefore, you must enable Lambda versions to use SnapStart. It initializes the function when you publish a new Lambda function version. SnapStart works in conjunction with Lambda function versions. However, there are additional steps to use the SnapStart feature. You activate the SnapStart feature through a Lambda configuration setting. The example described in the launch blog post reduces the cold start duration from over 6 seconds to less than 200ms. Snapstart can significantly reduce the cold start times for Lambda functions written in Java. It shows what happens during a Lambda deployment when SnapStart is enabled, as well as best practices to apply in CI/CD pipelines. This blog post describes in more detail how to enable SnapStart with different infrastructure as code tooling: AWS Serverless Application Model (AWS SAM), AWS CloudFormation, and Terraform. This was written by Michele Ricciardi, Specialist Solutions Architect, DevAx.ĪWS Lambda SnapStart enables customers to reduce cold starts by caching an encrypted snapshot of an initiated Lambda function, and reusing that snapshot for subsequent invocations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |