Krakow, Poland, 31 May - 2 June 2023

Thawing Java on AWS Lambda: Reducing cold start times from 11 seconds to 1
Conference (ADVANCED level)
Room 4A
Score 0.08
Score 0.19
Score 0.19
Score 0.20
The match becomes increasingly accurate as the similarity score approaches zero.

Java has never been a perfect fit for Function as a Service platforms such as AWS Lambda or Azure Functions. While both platforms have official support for Java, Java functions unfortunately suffer from significantly longer cold start times than many other runtimes.

In this talk I will show a simple Spring Cloud Java function running on AWS Lambda with fairly horrible cold start times of around 11 seconds and then show how we can fix this by replacing Spring Cloud with Micronaut and use GraalVM Native Image to perform most of the work during compile time. The end result is cold start times of less than a second, making Java a viable, though not without drawbacks, choice for FaaS platforms that support custom runtimes.

In this updated version I will compare Micronaut and GraalVM with AWS Lambda SnapStart and discuss the different solutions and their specific advantages and drawbacks. If time allows I will also have a look at the new native support in Spring Boot 3.

Daniel Raneland
factor10

Raniz is a programmer, architect, speaker and coach at factor10, helping companies achieve software excellence with a business focus.

Raniz is quick to adopt new technology. Everything from learning a new programming language to documentation of technicalities. He is prestigeless and likes to get into new domains. He loves to share knowledge and ideas, and interesting topics for conversation never end. Raniz helps maintain a high technical level, including Cloud and DevOps. Raniz has worked at factor10 since 2021, has previous experience as an architect at several companies, and is deeply skilled in Java. When he's not working, he's into beer brewing and triathlons.

Ticket prices will go up in...

28
Days
:
 
14
Hours
:
 
54
Minutes
:
 
12
Seconds

You missed out!

Venue address

ICE Krakow, ul. Marii Konopnickiej 17

Phone

+48 691 793 877

Email

info@devoxx.pl

Social Media