FlashcardNot attempted
Expand → migrate → contract
Recall it before you reveal
How do you change an API field (say price → amount) without breaking tabs still running old code?
Space to reveal
Show answer & explanation
1. Expand: the backend returns both price and amount (and accepts both).
2. Migrate: deploy the frontend that uses only amount.
3. Wait until old clients are gone: old tabs refreshed, mobile apps updated. Logs of an app-version header show when.
4. Contract: remove price from the backend.
At every moment, any client version still in use talks to a backend that understands it. The same pattern applies to database columns.