Posted On: Sep 26, 2024

Amazon Lambda SnapStart for Java delivers up to 10x faster function startup performance at no extra cost. Lambda SnapStart is a performance optimization that makes it easier for you to build highly responsive and scalable Java applications using Amazon Lambda, without having to provision resources or spend time and effort implementing complex performance optimizations.

For latency sensitive applications where you want to support unpredictable bursts of traffic, high and outlier startup latencies—known as cold starts—can cause delays in your users’ experience. Lambda SnapStart offers improved startup times by initializing the function’s code ahead of time, taking a snapshot of the initialized execution environment, and caching it. When the function is invoked and subsequently scales up, Lambda SnapStart resumes new execution environments from the cached snapshot instead of initializing them from scratch, significantly improving startup latency. Lambda SnapStart is ideal for applications such as synchronous APIs, interactive microservices, or data processing.

You can activate Lambda SnapStart for new or existing Java-based Lambda functions running on Amazon Corretto 11 or higher using the Lambda API, Lambda Console, Amazon CLI, Amazon Serverless Application Model (SAM), Amazon CloudFormation, Amazon SDK, and Amazon Cloud Development Kit (CDK).

Lambda SnapStart for Java is available in Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD. For more information on availability, see the Amazon Web Services Region table.