Spring AOT: Code Generation on Steroids
summary
Spring AOT moves Spring from runtime magic to build-time optimization to reduce startup time and memory without using GraalVM Native Image. It explains how Spring’s AOT preprocessing works on the JVM, covering BeanFactoryInitializationAotProcessor, RuntimeHints, and generated code, and shows real performance numbers plus guidance on where AOT helps and where it does not.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:44About speaker and project
- 3:08Spring startup problems
- 4:33Spring AOT overview
- 7:01Native compilation limits
- 10:11Runtime hints and GraalVM
- 12:17Developer experience
- 14:01Demo and code generation
- 15:46Spring AOT Maven plugin
- 17:55Proxy generation at build
- 21:06Startup performance
- 23:33Benchmarking results
- 25:17CDS archives and AOT
- 28:29Memory benefits
- 31:57Limitations and restrictions
- 35:07Security and reproducibility
- 36:51When to use Spring AOT
- 37:33Q&A
