Skip to content

How to develop, run and optimize Spring Boot 3 application on AWS Lambda

Photo of Nimret Sandhu
Hosted By
Nimret S.
How to develop, run and optimize Spring Boot 3 application on AWS Lambda

Details

In this talk I will present and compare several options of how to run Spring Boot 3 application on AWS Lambda using the following frameworks or tools:

  • AWS Serverless Java Container
  • AWS Lambda Web Adapter
  • Spring Cloud Function AWS
  • Custom Docker Image

I'll also discuss strategies how to optimize cold start of such Lambda function with AWS Custom Lambda Runtime based on GraalVM Native Image and AWS own offering SnapStart based on Firecracker microVM snapshot and restore and CRaC (Coordinated Restore at Checkpoint) runtime hooks.

We'll also look into the SnapStart priming techniques which help us increase the Lambda performance and explore how AWS Lambda Profiler for Java can help us identify this potential. Additionally we'll introduce AWS Lambda SnapStart Bug Scanner which is the SpotBugs plugin for helping AWS Lambda customers inspect their Lambda functions against potential bugs unique to AWS Lambda SnapStart environment. We'll also explore the impact of the SnapStart snapshot tiered low-latency cache on the cold start times.

I'll also discuss various optimization strategies to improve the performance (the cold and warm start time) of the Lambda function.
Is Spring Boot native support of CRaC also a potential optimization?

Speaker
Vadym Kazulkin is AWS Serverless Hero and Head of Development at ip.labs GmbH, a 100% subsidiary of the FUJIFILM Group, based in Bonn. Vadym has been involved with the Java ecosystem for over twenty years. His focus and interests currently include the design and implementation of highly scalable and available applications in AWS Cloud with the special passion for Serverless. Vadym is also the co-organizer of the Java User Group Bonn meetup and a frequent speaker at various Meetups and conferences.

Photo of Seattle Java User Group (http://www.seajug.org) group
Seattle Java User Group (http://www.seajug.org)
See more events
FREE