- Newest
- Most votes
- Most comments
Hi Domi.
I found the following Blog post that discuss Lambda performance optimizations. From this post, I would recommend you consider investigating about Provisioned Concurrency:
If you need predictable function start times for your workload, Provisioned Concurrency is the recommended solution to ensure the lowest possible latency. This feature keeps your functions initialized and warm, ready to respond in double-digit milliseconds at the scale you provision. Unlike on-demand Lambda functions, this means that all setup activities happen ahead of invocation, including running the initialization code.
Just to confirm, have you gone through the features and limitations of SnapStart? SnapStart is only supported on specific regions, and, per the documentation:
SnapStart supports the Java 11 and Java 17 (java11 and java17) managed runtimes. Other managed runtimes (such as nodejs18.x and python3.11), custom runtimes, and container images are not supported.
SnapStart does not support provisioned concurrency, the arm64 architecture, Amazon Elastic File System (Amazon EFS), or ephemeral storage greater than 512 MB.
To work with SnapStart, you can use the Lambda console, the AWS Command Line Interface (AWS CLI), the Lambda API, the AWS SDK for Java, AWS CloudFormation, AWS Serverless Application Model (AWS SAM), and AWS Cloud Development Kit (AWS CDK). For more information, see Activating and managing Lambda SnapStart.
Also: You can use SnapStart only on published function versions and aliases that point to versions. You can't use SnapStart on a function's unpublished version ($LATEST).
I hope this helps.
Relevant content
- asked 4 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 17 days ago