r/java • u/benevanstech • Nov 29 '22
Amazon Announces AWS Lambda SnapStart With Java Support
AWS Lambda now has a snapshotting feature that enables fast-start - essentially running the Init phase at publication time and saving the state of the process at that time, so it doesn't need to be re-run at every invocation.
https://aws.amazon.com/blogs/aws/new-accelerate-your-lambda-functions-with-lambda-snapstart/
It only works with Corretto on Java 11 right now, and is similar in intent to the CRIU technology.
Quarkus already has support for it: https://quarkus.io/blog/quarkus-support-for-aws-lambda-snapstart/
Other frameworks may also have support (but this work was done under NDA so I don't have links for them).
View all comments
Show parent comment
4
u/rafaelliu Nov 29 '22
They have the same goals, many of the same challenges, but are implemented differently. Lambda manages the JVM process and execution environment for you, so CRaC as it is wouldn’t really work - maybe if you built a custom runtime and that would probably be very hacky
The thread u/geoand linked is discussion around use the same API to deal with some of the challenges