Micronaut CRaC
summary
Micronaut adds an integration that uses OpenJDK CRaC to snapshot JVM state and restart from a hot image, packaged via a Gradle/Maven Docker build:crac task that embeds an ASO JDK with CRaC. Adds an order resource API plus a checkpoint simulator for tests, recommends eager singletons and allows Hikari + Micronaut Data JDBC to be checkpointed. Measured startup drops from ~650–700 ms to ~100–150 ms, and a DB-backed app from ~1 s to ~100–200 ms. Linux only, requires CRaC-enabled JDK.
AI-written summary · about
chapters (11)
- 0:00Introduction to Micronaut CRaC
- 3:18What is CRaC and why it matters
- 7:13Micronaut framework overview
- 15:02Setting up Micronaut CRaC
- 18:16Creating and restoring checkpoints
- 21:56Demo: Simple Micronaut app
- 26:17Demo: Measuring startup time
- 27:42Demo: Docker with CRaC
- 29:54Demo: Database integration
- 33:34Demo: Performance comparison
- 34:16Resources and Q&A
related talks
51mJava on CRaC Superfast JVM Application Startup
46mDeveloper experience in a modern Java framework
45mIntruduction to Micronaut 2.0
53mJava on CRaC: Superfast JVM Application Startup
57mIntroduction to Micronaut 2.0
48mMicronaut Deep Dive
46mUnleash the power of your applications with Micronaut and GraalVM
55mUnleash the power of your applications with Micronaut and GraalVM
