An Experiment in Continuous Deployment of JVM applications
summary
Prototype streams compiled .class bytes through Hazelcast Jet into a Hazelcast map and pushes updates into a running JVM via the Attach API, where an agent calls Instrumentation.redefineClasses to swap implementations. It requires local PID access, only replaces already-loaded classes and only changes method bodies (no adding/removing fields, methods or inheritance changes — the redefineClasses limitation), so it’s useful for fast bug fixes. Demo is a working proof of concept but flaky live and lacks version tagging and class-loading upgrades.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 1:54Continuous Integration
- 3:04CI vs CD
- 5:05Downtime
- 7:25BlueGreen Deployment
- 10:21Kubernetes Deployment
- 11:00What if
- 11:15Agenda
- 11:39Java Agents
- 12:15Static Agents
- 14:40Main Use Cases
- 15:54Attach API
- 16:37Attach in Hotspot
- 17:15Batching
- 18:39Stream Processing
- 19:53Jet
- 24:59Sequence Diagram
- 25:41Demo
- 32:02Limitations
