Java scaled to zero
summary
Quarkus + GraalVM compiles a Java microservice into a native binary and a tiny runner jar so the demo app becomes a 54 MB native executable that starts in ~0.05 s; the build produces a runner jar 1.3 MB plus a lib layer for Docker and supports edit-save-refresh developer mode. The app is a CRUD “todo” using Hibernate Panache and Postgres, runs as GraalVM native image, integrates with Kafka/Knative, scales up to 108 pods on bursts and back down to zero.
AI-written summary · about
chapters (19)
- 0:00Introduction and welcome
- 1:45History of Java and cloud
- 8:23Java is not dead
- 10:08Java's memory and startup challenges
- 12:55Introducing Korkis
- 16:24Demo building a Korkis app
- 23:03Adding database and JPA
- 33:52Packaging and native compilation
- 37:24Running native Java in 0.049 seconds
- 39:11Alternative programming models
- 41:19Reactive messaging demo
- 43:26Kubernetes and scaling to zero
- 45:13Demo scaling Java with K native
- 47:20Memory footprint comparison
- 49:05Auto-scaling to zero
- 51:10Kafka event-driven scaling
- 54:46Benchmarking and performance
- 56:31JVM vs native image trade-offs
- 57:15Q&A and closing
