~/talk

Native Spring Applications with GraalVM

Talkat JDD 2024 · 2024-10-22..10-23· [java, nodejs]
links:none on file
slides:none on file

GraalVM native-image compiles a Spring Boot 3 app (using Spring Boot 3 + Spring AOT and the native Maven plugin) into a standalone executable that embeds SubstrateVM and AOT-generated bean Java sources. Analysis of a Hello World shows ~2,100 classes on Linux and ~2,800 on Windows (roughly 50–74% of JRE classes retained). A demo Spring+Mongo app builds to 0.8s startup vs ~1.7s on the JVM, uses ~100MB vs ~230MB memory, and shows comparable basic throughput; drawbacks include lower long‑run peak throughput, some incompatible libs (e.g. log4j), and tougher Windows toolchain.

AI-written summary · about

  1. 0:00Introduction to GraalVM
  2. 3:22JIT vs AOT compilation
  3. 5:09Hello World demo
  4. 10:56GraalVM compilation process
  5. 13:05Benefits and drawbacks
  6. 15:15Spring Boot and GraalVM
  7. 17:28Spring Boot native demo
  8. 23:25Startup performance comparison
  9. 28:51CPU and memory usage analysis
  10. 33:40Load test results
  11. 35:06Optimization techniques
  12. 36:52Current limitations
  13. 38:58Use cases for native apps
  14. 41:51Migration tips
  15. 42:53Summary 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.