Module 6 · Dive 6.2
Green boot.
A deploy is recovery you choose to do. Blue keeps serving while green — the new build — boots: it seeds from the latest snapshot, replays the tail to reach blue’s head, and announces itself ready. Only then does traffic cut over, and blue retires. No request waits, because the log was the source of truth all along. Step it through.
Seed, replay, switch
interactiveWhy nothing waits
graft.design.mdThe cutover is safe because green never invents state — it reconstructs blue’s exact state by replaying the same log (Dive 6.1), so at the moment of readiness the two are identical and the switch is a no-op for correctness. Blue keeps serving the whole time green catches up, so there is no window where nobody is answering. The handoff is just a router flip once green’s LSN reaches the head; if green stalls, traffic simply never moves and blue carries on. This is the deploy story for the durable tier: ship a new build, let it replay, flip when ready — the same restore-plus-replay you saw for a crash in Module 2, now done deliberately and live.
References & sources
- Echo records
- graft.design.mdgreen boot, seed + replay, cutover
- store.design.mdsnapshot seed and tail replay
- External
- Blue-green deploymentthe cutover pattern
- State machine replicationreplay to an identical state
- Designing Data-Intensive Applications, Kleppmann 2017rolling upgrades, replication (Ch. 4, 5)