Advanced System Design Fundamentals
0% completed
The Expand and Contract Pattern
1. One Shape, Not One Technique
The data modeling module introduced expand and contract for a column rename. That was one example. The pattern is general, and recognizing it as a shape rather than a recipe is what lets you apply it to migrations that look nothing like a rename.
The shape is always the same five moves.
- Add the new thing alongside the old. Nothing reads it yet.
- Write both, so the new thing starts accumulating correct data.
- Backfill what already existed, so the new thing is complete.
- Verify, then move reads across.
- Remove the old thing.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%