28
u/drtyrannica Apr 27 '23
I realize this is the Java subreddit but... cries in Ruby 2.7
7
Apr 28 '23
Lol that's still better than Java 8 by like 7 years. 8 came out in 2014
7
u/drtyrannica Apr 28 '23
At least Java 8 is still maintained, Ruby 2.7 was eol like a month ago lol
2
6
u/HyzerFlipr Apr 28 '23
Have they fixed the JVM warming time issue for lambdas yet?
23
u/soonnow Apr 28 '23
With SnapStart, Lambda initializes your function when you publish a function version. Lambda takes a Firecracker microVM snapshot of the memory and disk state of the initialized execution environment, encrypts the snapshot, and caches it for low-latency access. When you invoke the function version for the first time, and as the invocations scale up, Lambda resumes new execution environments from the cached snapshot instead of initializing them from scratch, improving startup latency.
Though haven't used it
11
u/kendallvarent Apr 28 '23
We have used it. It's pretty cool. 20s cold starts down to 200ms. Sadly, no XRay support for snapstart lambdas.
There were also performance gains related to moving java-specific vpc-related cold starts from instantiation to function update, but that was a while back.
1
u/soonnow Apr 28 '23
Have you compared to Graal compiled functions by any chance?
1
0
Apr 28 '23
[deleted]
1
u/soonnow Apr 28 '23
It seems that way https://www.xerris.com/insights/improving-your-lambda-coldstart-performance-with-aws-lambda-snapstart-13-15-times-faster/
But I would like to know as well.
2
1
1
u/AleFilichkin May 05 '23
https://link.medium.com/bqtFHXbWyzb here you can see the performance difference between Java 17 and 11 for AWS Lambda, snapstart as well
0
90
u/krzyk Apr 27 '23
After 1 year and 7 months? Slow is an understatement.