API Versioning, Deprecation and Backward Compatibility Questions

Evolving an API without breaking existing consumers: versioning schemes (URI, header, media type, semantic versioning), classifying breaking versus non-breaking changes including behavioural ones such as defaults and error text, deprecation and sunset policy and timelines (including accelerated retirement), running multiple versions concurrently, and planning consumer migrations at scale including SDK, partner, mobile and long-tail client impact. Also covers finding who still calls an old version, catching accidental breaks with contract checks in CI, expand-then-contract evolution of fields and stored data, gradual rollout with per-version monitoring, and compatibility between independently deployed services, streams and libraries. Covers compatibility guarantees across REST, GraphQL and gRPC consumers. Excludes general API surface design, payload and OpenAPI schema design, protobuf field-level mechanics, writing the notices themselves, rate limiting, gateways and database schema migration.

HardSystem Design
64 practiced

Your company has many internal teams calling each other's APIs and a set of external partners calling the public ones. Should internal and external APIs follow the same versioning and deprecation rules? Lay out what you would standardize, what you would relax internally, and how you would automate enforcement.

MediumSystem Design
79 practiced

An API is served worldwide through CDNs and owned by several teams. How do you design version selection so that canarying a new version, retiring an old one and caching at the edge all keep working? What breaks cache hit rate and how do you avoid it?

HardSystem Design
76 practiced

Roll a breaking API change from v1 to v2 with zero downtime. Describe how old and new implementations run side by side, how traffic moves gradually, how the data store changes without breaking either version, and what triggers a rollback.

HardSystem Design
71 practiced

You need to let consumers keep working while a new API contract rolls out. When would you use side-by-side adapters, a facade or proxy translation layer, or a compatibility shim service, and how would you route traffic to test the translation before relying on it?

That is every published API Versioning, Deprecation and Backward Compatibility question for Cloud Architect so far. Browse the other topics in this category, or practice this one interactively.