Design a backward-compatible API change
8 steps · about 4 h · Intermediate
- Inventory the real contract (guide, Wikipedia, 30 min)
Include schemas, errors, timing assumptions and observed client behaviour, not just endpoint names.
- Define compatibility (guide, Wikipedia, 30 min)
State which existing requests and responses must continue to work through the change window.
- Question tolerance assumptions (guide, Wikipedia, 25 min)
Avoid depending on clients ignoring additions when their validators or generated code may reject them.
- Signal deprecation (reference, RFC Editor, 30 min)
Communicate lifecycle state in a machine-readable way while keeping migration guidance accessible.
- Classify compatibility changes (guide, Wikipedia, 35 min)
Communicate whether a release preserves or breaks the documented public interface.
- Make rollout reversible (guide, Wikipedia, 30 min)
Separate deployment from exposure so a harmful behaviour change can be disabled quickly.
- Measure migration (guide, Wikipedia, 30 min)
Track use of old and new shapes, failures and latency instead of guessing when clients have moved.
- Retire deliberately (guide, Wikipedia, 30 min)
Publish dates and alternatives, verify remaining consumers and preserve a rollback path before removal.