~/talk

Reduce Cold Starts for Java Serverless Applications in AWS

Talkat JCON WORLD ONLINE 2023 · on Wednesday, 2023-11-22· at 17:00· Live-Stream 5, Online - Remote· [serverless, java]
slides:none on file

Java cold starts on AWS measure around 3–3.5 seconds for plain JVMs; using GraalVM Native Image brings p90 cold starts down to roughly 500–600 ms but forces Linux native builds and heavy CI (several GB RAM and custom runtimes). AWS Lambda SnapStart (based on CRaC) restores snapshots in about 689 ms end-to-end; adding priming (e.g., warming Jackson, DynamoDB clients during snapshot) cuts restore latency further and can push P99 below ~1s. SnapStart adds ~2m deployment time, only supports Java 11+, x86_64, and omits ARM and some regions.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:48Java popularity and serverless adoption
  3. 4:13Understanding cold starts in Lambda
  4. 7:47Example application and cold start measurements
  5. 10:37Optimizing Java Lambda configurations
  6. 16:21Avoiding reflection and dynamic class loading
  7. 17:03GraalVM native image for cold starts
  8. 23:02AWS SnapStart explained
  9. 29:21SnapStart with optional snapshots and priming
  10. 33:13Performance comparison of techniques
  11. 37:10SnapStart limitations and trade-offs
  12. 39:41Provisioned concurrency and proactive initialization
  13. 41:49Future of Java cold start improvements
  14. 42:55Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.