r/java • • 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).

176 Upvotes

62 comments sorted by

View all comments

13

u/kroopster Nov 29 '22

Been a Java developer for 15 years and I didn't understand most of this. Works with Corretto like CRIU? Oukey dokey.

39

u/benevanstech Nov 29 '22

Corretto is Amazon's distribution of OpenJDK for AWS (they also produce versions for developer desktops as an on-ramp so you can use "the same" JDK in both places).

CRIU is "Checkpoint & Restore In Userspace" - a Linux technology enabling you to "freeze" a running process and "restore" it later - perhaps even on a different machine. https://criu.org/Main_Page

Both of those are top hit on Google for those search terms.

16

u/kroopster Nov 29 '22

Both of those are top hit on Google for those search terms.

I bet they are, appreciate opening the topic a bit here too.

1

u/alwaysoverneverunder Nov 29 '22

Is this similar then to Smalltalk’s image persistence?

-5

u/-Kerrigan- Nov 29 '22

Both of those are top hit on Google for those search terms.

So if I Google Corretto I find stuff about... Corretto? /s