~/talk

Lean Spring Boot Applications for the Cloud

Talkat DevDays Europe 2024 · 2024-05-20..05-24· [web-performance]
slides:none on file

Benchmarks show concrete wins: baseline image ~358 MB, startup ~4.5 s, idle RAM ~300 MB and ~470 MB after ~2k req/s; switching JDK from 17 to 21 improves high‑percentile latency; buildpacks produce tuned containers and spring boot startup report surfaces slow bean init; toggling lazy spring beans and removing Actuator drops beans from 447 to 275 and cuts startup; depclean removes unused libs and trims image size; jlink and alternate JVMs (GraalVM/native) shrink images and, in measured runs, improve throughput.

AI-written summary · about

  1. 0:00Lightweight Spring Boot cloud apps
  2. 1:08Optimize Java apps for cloud
  3. 5:45Spring Pet Clinic demo
  4. 8:17Build packs for Docker
  5. 13:15Startup time with Spring Boot Startup Report
  6. 15:25Baseline benchmarks for Pet Clinic
  7. 20:20Upgrade to Java 21
  8. 23:31JVM startup with -noverify
  9. 24:32Tiered compilation for faster startup
  10. 26:20Garbage collector choices
  11. 28:29Lazy Spring bean init
  12. 31:02Reduce config file scans
  13. 32:02Impact of removing Actuator
  14. 34:15Clean unused dependencies
  15. 37:43Optimize Spring config with indexer
  16. 39:10Custom JREs with jlink
  17. 40:16Switch JVMs for performance
  18. 41:43GraalVM for native images
  19. 43:06Alpine-based containers
  20. 43:48GraalVM native images
  21. 44:29Virtual threads in Java 21
  22. 44:50Key optimizations summary
~/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.