Vadym Kazulkin
High performance Serverless Java on AWS
#1about 4 minutes
Why Java struggles with serverless adoption on AWS
Java's popularity as a language has not translated to serverless due to significant cold start times and a high memory footprint compared to Node.js or Python.
#2about 2 minutes
Understanding the Lambda execution model and cold starts
A cold start involves creating a new microVM, downloading code, and running static initializers, whereas a warm start only executes the handler method on a reused environment.
#3about 3 minutes
Benchmarking a standard Java Lambda's performance
Initial performance tests of a simple Java Lambda function show fast warm starts but unacceptable cold start latencies of over three seconds.
#4about 3 minutes
Introducing AWS SnapStart for faster Java cold starts
AWS SnapStart improves cold start times by taking a snapshot of an initialized microVM during deployment and quickly restoring it for new invocations.
#5about 3 minutes
Optimizing SnapStart performance with priming techniques
Priming uses CRaC hooks like `beforeCheckpoint` to pre-initialize expensive components such as HTTP clients and JSON serializers so they are included in the snapshot.
#6about 3 minutes
Measuring the impact of SnapStart and priming
Activating SnapStart with priming reduces cold starts from over three seconds to one second, with further improvements to 700ms as the tiered cache warms up.
#7about 3 minutes
Using the Lambda profiler for advanced priming
The AWS Lambda profiler can reveal internal SDK initialization processes, like event serialization, which can be primed to further reduce cold start times.
#8about 2 minutes
Exploring GraalVM Native Image as an alternative
GraalVM's Native Image compiler creates a small, self-contained executable that achieves even faster cold starts and warm starts compared to standard JVM execution.
#9about 3 minutes
Comparing the trade-offs of SnapStart vs GraalVM
While GraalVM offers the best performance, SnapStart is a fully managed solution that avoids the CI/CD complexity and dynamic invocation challenges of native image compilation.
Related jobs
Jobs that call for the skills explored in this talk.
Featured Partners
Related Videos
High performance Serverless Java on AWS
Vadym Kazulkin
Serverless Java in Action: Cloud Agnostic Design Patterns and Tips
Kevin Dubois, Daniel Oh
Serverless-Native Java with Quarkus
Alex Soto
2021: Familiar APIs on Kickass Runtimes #slideless
Adam Bien
Microservices with Micronaut
Moritz Kammerer
Serverless Architectures with Spring Cloud Functions and Knative
Ingo Weichsel
Going serverless using the Spring Framework ecosystem
Timo Salm
Like Spring, but Faster: The new Java Jedi
Eric Deandrea
From learning to earning
Jobs that call for the skills explored in this talk.
Low Latency Java Developer
Square One Resources Limited
Charing Cross, United Kingdom
€130-149K
Java
Unix
Scrum
Agile Methodologies
Software Engineer - AWS & Java
Cognizant
Remote
Intermediate
Java
JavaScript
Agile Methodologies
Amazon Web Services (AWS)
Senior Full-Stack Engineer (Java Quarkus/Angular, Kafka, Microservices)
Callista Group
Basel, Switzerland
Senior
Java
Kafka
Angular
Microservices
Senior Developer - AWS BluAge Java Spring Boot Kafka
N Consulting Ltd
Charing Cross, United Kingdom
€104-130K
Senior
Kafka
Microservices
Amazon Web Services (AWS)





