Real Continuous Deployment of JVM applications
summary
Claims zero downtime single-JVM deployment by streaming compiled class bytes into a running JVM and redefining them live. Uses Attach API to load an agent, Instrumentation API to call redefineClasses, and Hazelcast + Hazelcast Jet as the streaming store and pipeline. Demo builds an embedded servlet, compiles updated class files, jets them into a Hazelcast map, and the running JVM reloads method bodies successfully. Works for changing implementations but not for adding/removing fields, methods, class hierarchy or loading brand-new classes; CI-based stream and tagging are suggested for production use.
AI-written summary · about
chapters (17)
- 0:00Intro
- 1:43Continuous Integration
- 2:58Continous Stuff
- 4:24Traditional JVM deployment model
- 5:58Continuous Deployment approaches
- 7:55The Attach API
- 9:29Java agents
- 10:13Types of agent
- 10:44Agent configuration
- 12:16Instrumentation use-cases
- 12:50Instrumentation API
- 14:03Options to move bytecode around
- 15:52Hazelcast Jet
- 18:17Overall design
- 20:02Overall flow
- 27:01Limitations of the demo
- 28:32Improvements
