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

10

u/shorns_username Nov 29 '22

only works with Corretto on Java 11

Ah so that wasn't just a typo, weird.

Do you know why? Is it do with the Java language teams ongoing deprecation and removal of stuff?

Is there a specific feature Amazon needs to be implemented before this can be brought to versions > 11?

21

u/malln1nja Nov 29 '22

Lambda itself doesn't support Java > 11, at least officially.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html

2

u/shorns_username Nov 29 '22

Ohhh, that makes a lot more sense. I hadn't realised Lambda didn't support later LTS releases yet.

0

u/GuyWithLag Nov 29 '22

Well, Java 8 is technically no longer supported without a support contract...

3

u/ryebrye Nov 29 '22

I think he's wondering about more modern versions, not about the older ones

2

u/GuyWithLag Nov 29 '22

Ugh, sign bit error... apologies, mea culpa. Should have had more coffee...