~/talk

Building Lean Spring Boot Applications for the Cloud

Talkat Voxxed Days Brussels 2024 · 2024-05-21..05-22· [java, cloud-infrastructure]
slides:none on file

Spring PetClinic containers built with buildpacks and Liberica JDK 17 start in ~4.5–5s, produce ~360MB images and use ~300MB RAM while handling ≈2,000 req/s; switching to Java 21, virtual threads, and Spring AOT cuts percentiles and memory, enabling about half the startup time and ≈30% less RAM when combined with jlink and a smaller builder. GraalVM native images shrink runtime RAM but blow up build time and sometimes worsen throughput. Removing actuator and unused starters reduces bean count (447 → 275) and saves milliseconds.

AI-written summary · about

  1. 0:00Introduction
  2. 5:46Spring Pet Clinic demo app
  3. 8:12Baseline for benchmarks
  4. 13:10Startup performance tools
  5. 17:47Benchmarking methodology
  6. 22:30Java and JVM tuning
  7. 25:19Spring Boot optimizations
  8. 28:26Removing dependencies
  9. 30:57Cleaning with DepClean
  10. 33:05Ahead-of-time processing
  11. 35:32Smaller containers with jlink
  12. 36:36Alternative JVMs overview
  13. 41:56GraalVM Native Images trade-offs
  14. 43:02Virtual threads in Java 21
  15. 43:43Summary of optimizations
  16. 47:59Conclusion and Q&A
~/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.