Going Serverless with Spring Boot 3
Talkat JCON Europe 2023 · on Tuesday, 2023-06-20· at 15:00· Cinema 7, Im Mediapark 1, 50670 Köln, Germany·
summary
Shows how to run Spring Boot 3 on Knative and as GraalVM native images using Cloud Native Buildpacks or the native Maven plugin, with practical tradeoffs: startup drops from ~4s to ~100–200ms, memory falls from ~200MB to ~37MB, and Knative serves with autoscale-to-zero during Hey load tests. Builds take significant resources and time—native-image compilation consumes minutes and multiple GB of RAM—so use the native-image Java agent to record reflection hints and delegate heavy builds to CI/CD.
AI-written summary · about
chapters (17)
- 0:00Introduction and speaker
- 1:47Why use serverless
- 4:55Serverless runtimes overview
- 7:24K-native serving introduction
- 8:28Containerizing Spring Boot apps
- 11:15Deploying to K-native
- 12:42Auto-scaling with K-native
- 15:10JVM vs native image trade-offs
- 18:23GraalVM native images
- 23:01Dynamic features and hints
- 29:24Spring Boot 3 and native support
- 32:55Building native Spring Boot apps
- 34:56Demo and resources
- 37:50Native image performance demo
- 40:41K-native with native image
- 42:25JVM checkpoint restore
- 43:28Conclusion and Q&A
related talks
41mGoing Serverless With Spring’s Support for GraalVM, Project CraC & More
26mGoing Serverless With Spring’s Support for GraalVM, Project CraC & More
17mAdopting Java for the Serverless world
36mRunning Spring in a Serverless Environment
50mKnative and Spring Native - Bringing back the func
30mSupersonic Java Quarkus with Knative serverless
43mScaling Your Spring Boot App to Zero
30mKnative goes beyond serverless
