~/talk

Thawing Java on AWS Lambda

Talkat Craft Conference 2022 · 2022-06-02..06-03· [java, serverless]
links:none on file
slides:none on file

A simple Spring Cloud Function on AWS Lambda starts with ~11–16 second cold starts, then moving the code to Micronaut reduces cold starts to about 8.5s, and compiling with GraalVM Native Image yields ~800ms cold starts and much lower memory use. The demo shows replacing Spring Cloud Function, swapping annotations, measuring 100 forced cold starts, and hitting native-image pitfalls (long compile time, reflection config, platform-specific binaries) but achieving subsecond cold startup.

AI-written summary · about

  1. 0:00Start
  2. 7:27Cold Start Call Graph - Theory
  3. 8:30Benchmarking approach
  4. 11:29Spring Startup
  5. 13:51Compile Time vs Runtime
  6. 15:15Very similar to work with
  7. 17:32Rust looks very different from Java
  8. 18:18Cold Start Benchmarks
  9. 22:21JVM vs Native
~/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.