Advanced System Design Fundamentals
0% completed
Schema Evolution Without Breaking Clients
| Where the code runs | Code version | <span style="white-space:nowrap">Schema</span> | Result |
|---|---|---|---|
| The test suite | New | New | Every test passes |
| Production, during the rollout | Old and new | New | Old servers fail |
| Production, after a rollback | Old | New | Every server fails |
This table follows one migration at a food delivery app. A migration is a script that changes the structure of a database. This one splits the phone column into country_code and phone_number, copies the data across, and drops phone. It ran before the new code rolled out.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%