~/talk

Optimize your Java application for containers and serverless

Talkat AWS Summit Berlin 2024 · 2024-05-15..05-16· [java, serverless]
slides:none on file

Recommendations focus on measurable changes: upgrade from Java 8 to 17/21, tune Lambda memory with Lambda Power Tuning or Compute Optimizer, swap AWS SDK v1 for v2 with the CRT HTTP client (startup latency ~76% better), and enable Lambda SnapStart for up to 10x cold-start reduction while handling DB sockets via the CRaC before-snapshot/after-restore hooks. For containers use multi-stage builds, Jib, and Zstandard image compression (startup up to ~27% faster), or build GraalVM native images / CRaC checkpoints (Spring Boot 19s → 2.5s); Graviton yields ~40% price/perf.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 1:06Why Java for serverless and containers
  3. 3:56Optimizing Java on AWS Lambda
  4. 7:56Lambda cold starts and initialization
  5. 14:44Dependency injection and SDKs
  6. 17:16Lambda SnapStart for faster startup
  7. 22:20Java on containers overview
  8. 23:23Slow container startup challenges
  9. 26:16Reducing container image size
  10. 31:39Ahead-of-time compilation with GraalVM
  11. 36:20Coordinated restore at checkpoint
  12. 41:21Optimizing for Graviton processors
  13. 44:15Trade-offs and effectiveness of optimizations
  14. 44:59Upgrading Java versions with Amazon Q
  15. 46:00Resources and closing remarks
~/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.