AWS Lambda now supports SnapStart for Java functions in the AWS GovCloud (US) Regions

Posted on: Sep 26, 2024

Starting today, AWS Lambda SnapStart for Java functions is generally available in the AWS GovCloud (US) Regions. AWS Lambda SnapStart for Java delivers up to 10x faster function startup performance at no extra cost, making it easier for you to build highly responsive and scalable Java applications using AWS 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 SnapStart for new or existing Java-based Lambda functions running on Amazon Corretto 11, 17, and 21 using the AWS Lambda API, AWS Management Console, AWS Command Line Interface (AWS CLI), AWS CloudFormation, AWS Serverless Application Model (AWS SAM), AWS SDK, and AWS Cloud Development Kit (AWS CDK).

For more information on Lambda SnapStart, see the documentation and the launch blog post. To learn more about Lambda, see the Lambda developer guide.