The field you changed
Step 1 · The pattern
Two app versions read the same response
The orders API returns price for each order. App 5.x and app 4.x both read it. (All numbers are illustrative.)
- app 4.x
- app 5.x
- screen shown
In short
The field you changed: how it works and how it breaks
A website ships with its backend, but a mobile app is a client you cannot update: people keep old versions for months. Every response is a contract with all of them. Adding a field is safe, since old apps ignore it. Renaming or removing a field, changing its type, or making an optional field required breaks them: the new app is fine and every old one fails, often by crashing. Make changes additive: add the new field, keep filling the old one until no supported app reads it, then remove it. Write clients that tolerate unknown and missing fields. For changes that truly break, publish a new version alongside the old, track which app versions still call it, and set a minimum supported version as the last resort.
What this simulation simplifies
- A crash is shown per request; a real crash ends the session, and the user may not come back.
- Forced updates and minimum versions are mentioned, not animated.
How this comes up in interviews
"You need to change a field's type in a public mobile API. How do you roll it out?"
Then they ask
- How long do you keep the old field?
- How do you know when it is safe?
- When do you create a new API version?
A strong answer covers
- Additive change: add the new field, keep the old one populated.
- Clients tolerate unknown and missing fields.
- Measure usage by app version; set and raise a minimum supported version.
- Remove the old field only when no supported client reads it.
- Breaking changes go into a new version served alongside the old.
Points to cover, not a script. Say them in your own words and tie them to a system you have worked on.
On one page: the track cheat sheet.
Sources: Google API Improvement Proposals: AIP-180 Backwards compatibility ↗ · Stripe Docs: API upgrades ↗ · Report a problem
Diagrams are our own simulations: the timings, rates and counts in them are illustrative, not measurements. Captions are original wording.