Zero-Downtime Projections Replay
summary
Claim: safe, zero‑downtime projection replay is achievable by reducing events to reprocess and per‑event cost and by running replays in parallel to live consumers. Techniques include partition by aggregate id and snapshot + replay only missing events to cut event count, batching in‑memory updates to cut IO, enforcing idempotence and forbidding external calls or randomness, and using a projection manager that fetches events by checkpointed offsets so clones can catch up and swap over without downtime.
AI-written summary · about
chapters (20)
- 0:00Introduction to projections
- 2:00Problem with slow projections
- 3:26Types of projection replays
- 5:54Projection design rules
- 7:41Reducing replay time
- 9:06Partitioning events
- 11:11Rolling replay updates
- 13:01Event stream transformations
- 14:54Snapshoting projections
- 17:33Batching updates
- 19:22Event order importance
- 20:27Zero-downtime replay
- 23:00Projection infrastructure
- 25:12Parallel processing benefits
- 26:56Partition checkpointing
- 28:44Snapshot replay process
- 29:30Replay-aware projections
- 31:17Feature versioning
- 32:44Selective replay strategies
- 33:28Practical replay techniques
