~/talk

Ten things that improve the performance of your Java based AWS Lambda

Talkat J-Fall 2022 · on Thursday, 2022-11-03· [serverless, java]
links:none on file
slides:none on file

Java AWS Lambda cold starts shrink with concrete steps: move heavy clients to static initialization, pick the lightweight URLConnection HTTP client to save ~80–120 ms, and preconfigure region/endpoints to avoid SDK lookups. Use Lambda Power Tuner to find the memory/CPU sweet spot, enable tiered compilation to drop cold-start P95 from ~5s to ~2s, and use GraalVM native image or provisioned concurrency for dramatic wins — a Spring Boot P95 example falls from ~13s to below 1s. Switch to ARM (Graviton) and avoid bulky layers.

AI-written summary · about

  1. 0:00Introduction to Java Lambda performance
  2. 1:07Understanding cold starts in serverless
  3. 3:56Increase memory for faster Lambda
  4. 5:17Move static initialization outside handler
  5. 6:21Use lightweight dependencies
  6. 7:48Pre-configure Lambda settings
  7. 8:51Enable tiered compilation
  8. 10:36Use provisioned concurrency
  9. 12:44Avoid heavy frameworks
  10. 14:08Minimize application size
  11. 14:31Use GraalVM for native images
  12. 15:34Explore CRaC for JVM snapshots
  13. 16:16Leverage parallelization
  14. 16:59Switch to ARM processors
  15. 17:20Avoid slow Lambda layers
  16. 18:24Summary of performance gains
~/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.