Afraid of Java Cold Starts in Serverless? Fear Not, Java is Super Fast!
Talkat JCON Europe 2023 · on Wednesday, 2023-06-21· at 16:00· Cinema 7, Im Mediapark 1, 50670 Köln, Germany·
summary
Plain Java starts in milliseconds on a laptop (measured ~67 ms local), full Java EE servers take seconds (GlassFish >5s), Quarkus with build‑time optimizations boots around Quarkus 890 ms, Spring Boot about 1.7s, but a minimal Piranha engine runs ~Piranha 200 ms and without the HTTP stack ~Piranha 100 ms. On AWS Lambda a cold init with Piranha measures ~500 ms cold start then subsequent invocations drop to ~2 ms; options discussed include JVM tuning, AWS SnapStart and GraalVM native images.
AI-written summary · about
chapters (14)
- 0:00Introduction to Java in serverless
- 1:27What is AWS Lambda and cold starts
- 8:11Java startup speed in AWS Lambda
- 11:45Local Java startup performance demo
- 15:52Java EE vs plain Java startup times
- 16:12Optimizing Jakarta EE for fast starts
- 17:16Quarkus framework deep dive
- 24:31How Quarkus works under the hood
- 28:44Piranha Cloud framework introduction
- 32:20Piranha Cloud startup demo
- 39:23Running Piranha Cloud in AWS Lambda
- 44:07Optimizing JVM and resources
- 46:58AWS SnapStart and JVM optimizations
- 49:27Conclusion and framework choices
related talks
38mAfraid of Java cold starts in Serverless? Fear not, Java is super fast!
56mAfraid of Java cold starts in Serverless? Fear not, Java is fast
46mReduce Cold Starts for Java Serverless Applications in AWS
53mHigh performance Serverless Java on AWS
01h 00mAdapting Java for the Serverless world
51mHow To Reduce Cold Starts for Java Serverless Applications in AWS
56mThinking in Serverless Java (Code)
46mThawing Java on AWS Lambda Reducing Cold Start Times from 11 Seconds to 1
