Vadym Kazulkin

Practical performance tuning for Serverless Java on AWS

Slash your serverless Java cold starts from seven seconds to under one. Learn two practical tuning strategies for AWS.

Practical performance tuning for Serverless Java on AWS
#1about 4 minutes

Comparing data access patterns for serverless Java

An overview of the demo application using DynamoDB, Aurora DSQL with JDBC, and Hibernate to set the stage for performance comparisons.

#2about 4 minutes

Code walkthrough for DynamoDB, JDBC, and Hibernate

A review of the data access object (DAO) implementations for DynamoDB, plain JDBC with HikariPool, and the Hibernate ORM framework.

#3about 7 minutes

Understanding and measuring Lambda cold start performance

The Lambda execution lifecycle is explained to differentiate cold starts from warm starts, followed by baseline performance measurements for each data access pattern.

#4about 6 minutes

Optimizing cold starts with AWS Lambda SnapStart

AWS Lambda SnapStart improves startup times by creating a pre-initialized snapshot, which can be further enhanced using priming techniques with CRaC hooks.

#5about 8 minutes

Analyzing SnapStart performance with advanced priming

Performance benchmarks show significant cold start reduction from priming, and the behavior of the tiered, low-latency cache explains why later invocations are faster.

#6about 6 minutes

Building a GraalVM native image for serverless Java

GraalVM's ahead-of-time compilation offers peak performance but requires extensive configuration for reflection and resources, especially when using frameworks like Hibernate.

#7about 6 minutes

Comparing GraalVM, SnapStart, and other AWS options

A direct performance comparison shows GraalVM outperforming SnapStart, alongside a brief look at related technologies like Lambda managed instances and Project Leyden.

#8about 2 minutes

Final recommendations for Java performance tuning

Choose SnapStart for a managed solution with good performance via priming, or select GraalVM for maximum performance if you can manage the build complexity.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles

From learning to earning

Jobs that call for the skills explored in this talk.