Design a backward-compatible API change

8 steps · about 4 h · Intermediate

  1. Inventory the real contract (guide, Wikipedia, 30 min)

    Include schemas, errors, timing assumptions and observed client behaviour, not just endpoint names.

  2. Define compatibility (guide, Wikipedia, 30 min)

    State which existing requests and responses must continue to work through the change window.

  3. Question tolerance assumptions (guide, Wikipedia, 25 min)

    Avoid depending on clients ignoring additions when their validators or generated code may reject them.

  4. Signal deprecation (reference, RFC Editor, 30 min)

    Communicate lifecycle state in a machine-readable way while keeping migration guidance accessible.

  5. Classify compatibility changes (guide, Wikipedia, 35 min)

    Communicate whether a release preserves or breaks the documented public interface.

  6. Make rollout reversible (guide, Wikipedia, 30 min)

    Separate deployment from exposure so a harmful behaviour change can be disabled quickly.

  7. Measure migration (guide, Wikipedia, 30 min)

    Track use of old and new shapes, failures and latency instead of guessing when clients have moved.

  8. Retire deliberately (guide, Wikipedia, 30 min)

    Publish dates and alternatives, verify remaining consumers and preserve a rollback path before removal.