~/talk

High performance Serverless Java on AWS

Talkat GeeCON 2024 · 2024-05-15..05-17· [serverless, java]
slides:none on file

Measurements show unoptimized Java Lambdas hit ~3.3s P90 cold starts (warm P90 ~7ms) across ~100 cold starts/hour. Enabling SnapStart plus a simple DynamoDB priming cuts P90 by ~1.5s to ~1s; priming runs during deployment. Switching HTTP clients to AWS CRT HTTP client reduces cold and warm latency versus URLConnection/Apache. Building with GraalVM Native Image drops P90 to ~0.5s and lets memory fall to 512–768MB, but native builds need Linux, larger CI resources, and SnapStart adds ~2.5 minutes per deployment and has feature limitations.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 10:52Java performance challenges in serverless
  3. 20:26Understanding Lambda cold starts
  4. 30:20Optimizing cold starts with snap start
  5. 36:52Java compilation options for Lambda
  6. 41:12GraalVM Native Image for serverless
  7. 49:02Alternatives to DynamoDB for serverless
  8. 50:05Recommendations and closing
~/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.