Quick revision
The short answer
APIs stay compatible for years when every API has a team that owns it and is accountable to its consumers, when a breaking change is an explicit decision with an approval and a cost estimate rather than an accident, and when the organisation invests in contract tests, spec diffing and usage tracking. It also needs budget for keeping old behaviour and helping consumers migrate, and leaders who reward that stability work as much as new features.
What to remember
In this answer, we saw that keeping APIs compatible for years is mostly an organisational achievement. It needs clear ownership of each API with accountability to consumers, breaking changes that are explicit decisions with cost estimates and approval, investment in contract tests, spec diffing and usage tracking, budget for maintaining old behaviour and helping consumers migrate, and leaders who reward stability and migration work as much as new features.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
APIs stay compatible for years when every API has a team that owns it and is accountable to its consumers, when a breaking change is an explicit decision with an approval and a cost estimate rather than an accident, and when the organisation invests in contract tests, spec diffing and usage tracking. It also needs budget for keeping old behaviour and helping consumers migrate, and leaders who reward that stability work as much as new features.
Why this question is asked
Most engineers know the techniques: additive changes, tolerant readers, expand and contract. Yet many organisations still break their own APIs every quarter. The reason is usually not a lack of skill; it is that nobody owns the API, the breaking change was nobody's decision, and the migration work was nobody's job. Interviewers ask this at the most senior levels because they want to hear how we would shape an organisation, not a codebase. In this answer, we will look at why technique alone fails, and then at the five practices that decide whether compatibility lasts: ownership, explicit decisions, tooling, budget and incentives, with an example of each in action.
1Why Technique Alone Does Not Last
Imagine a company of 40 teams where every engineer knows expand and contract. A team is under pressure to ship a feature by the end of the quarter. Expanding properly means supporting two shapes for six months; changing the field directly means one pull request. Nobody is asked, nobody is measured on consumer breakage, and the consumers are in another department. The field changes, two consumers break in production, and the incident review blames 'communication'.
Nothing in that story is a technical gap. Each failure is organisational: no clear owner who felt responsible for consumers, no point where someone had to decide that breaking was worth it, no tool that would have caught the change, no budget for the slower path, and no reward for taking it. Those are exactly the practices we need to put in place.
2Clear Ownership of Every API
Every API needs one owning team, recorded in the API catalog next to the contract. Owning means more than writing the code. The owner knows who its consumers are, answers their questions, publishes changes and deprecations, and is the team that gets paged when the API misbehaves.
Ownership is also what survives reorganisations. When a team is split or merged, every API it owned must be assigned to a new owner on the same day, or it becomes an orphan. Orphaned APIs are where compatibility dies: nobody dares to change them, and when somebody finally must, nobody remembers who depends on them. A simple rule helps: an API without an owner in the catalog fails the platform's checks, the same way a service without an on-call rotation would.
3Breaking Changes as Explicit Decisions
Sometimes breaking an API is the right call: a security flaw, a data model that blocks the business, a costly old format. The goal is not to forbid breaking changes but to make each one a visible decision. The owning team writes a short proposal: what changes, which consumers are affected, what migration costs each of them, and what the alternative of keeping the old behaviour would cost. An API review group, or the consumers' leads, approves or rejects it.
The cost estimate is what changes behaviour. When a team sees that renaming a field costs 12 consumer teams two days each, about 24 engineer-days, against a few days of expand and contract on their own side, they nearly always choose the compatible path on their own. The process rarely has to say no; it makes the trade-off visible.
- Can the change be made additively?YesUse expand and contract; no approval neededNoWrite a breaking-change proposal
- Proposalaffected consumers, migration cost, cost of not changing
- Approved by API review and consumer leads?YesPublish timeline and sunset dateNoFind a compatible design
- Migration supported by the ownerguides, dual support, help to consumers
- Old behaviour removed on the dateonly when usage is zero or the date passed
5 steps in order. Play them, or step through them one at a time.
4Investing in Tooling
People forget; pipelines do not. Three kinds of tooling carry most of the load. Contract tests, consumer-driven with Pact or Spring Cloud Contract, make a provider's build fail when it breaks a consumer's expectations. Spec diffing compares each new OpenAPI or schema version with the published one and flags breaking changes in the pull request, before a human has to notice. Consumer usage tracking tells owners who calls which endpoint and which fields are still sent, which turns a deprecation from a guess into a measured process.
This tooling must be built and run by a platform team, not reinvented by each product team. That is an explicit investment, a few engineers for years, and it is the part leaders most often underfund because its value is invisible: its success is incidents that never happen.
5Budget for Old Behaviour and Migration Help
Compatibility costs money every month. Keeping two field shapes means more code paths and more tests; supporting an old version means running it, patching it and keeping its dependencies current. If roadmaps leave no room for that, teams will break things to free up time.
So the planning process should reserve capacity for it, for example 10 to 20 percent of each team's time for maintenance, which includes supporting deprecated behaviour and helping consumers migrate. Help means concrete things: migration guides with before and after examples, a compatibility shim, pairing sessions with the slowest consumers, sometimes the owner opening pull requests in consumer repositories. A migration that the owner actively helps with finishes in weeks; one announced by email can drag on for a year.
6Leaders Who Reward Stability
Engineers do what their organisation rewards. If promotions go to the people who launch new services, and nobody notices the team that ran a three-year-old API without one breaking change, the incentives push toward breakage. Leaders change this in plain ways: they include consumer impact and migration work in performance reviews, they celebrate a clean deprecation in the same forums as a launch, and they ask 'who did this break?' in every change review.
Here is an example situation. A team proposes removing an old endpoint that still has four internal consumers. A leader who rewards stability does not just approve or block it. They ask the team to estimate the consumers' cost, give the team time in the next quarter to build a shim and help the four consumers move, and then mention the finished migration in the quarterly review. The next team facing the same choice has seen that the careful path is noticed.
7Follow-up questions
Who should own the API review process?
Usually a small group of experienced engineers from several teams, supported by the platform team that owns the tooling. It should not be a gate that every change must pass; additive changes need no review at all. The group only looks at breaking-change proposals and at new public or cross-team APIs.
How do you know whether these practices are working?
We measure outcomes: the number of incidents caused by API changes, the number of breaking changes caught in CI rather than production, how long deprecations take from announcement to removal, and how many APIs have an owner and up-to-date usage data. If incidents fall and deprecations finish on schedule, the practices are working.
8Conclusion
In this answer, we saw that keeping APIs compatible for years is mostly an organisational achievement. It needs clear ownership of each API with accountability to consumers, breaking changes that are explicit decisions with cost estimates and approval, investment in contract tests, spec diffing and usage tracking, budget for maintaining old behaviour and helping consumers migrate, and leaders who reward stability and migration work as much as new features.
Open with
Beyond the techniques, I think five practices decide it. First, ownership: every API has one team, recorded in the catalog, that knows its consumers and is accountable to them, and APIs never become orphans after a reorganisation.
Then, if they want more
Second, breaking changes are explicit decisions. A team that wants to break something writes a short proposal with the affected consumers and the migration cost, and it gets approved by API review and the consumer leads.
In my experience the cost estimate alone changes behaviour: when a rename costs twelve teams two days each, the owner chooses expand and contract on their own. Third, tooling run by a platform team: consumer-driven contract tests in provider pipelines, spec diffing on every pull request, and usage tracking so deprecations are measured instead of guessed.
Fourth, budget: keeping old behaviour and helping consumers migrate costs real time, so I reserve maintenance capacity in planning and expect owners to write guides, build shims and sometimes open pull requests in consumer repos. Fifth, incentives: leaders have to reward stability and migration work in reviews and promotions, and celebrate a clean deprecation like a launch.
If people only get credit for new features, no process will keep APIs compatible for long.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Framework reference, Spring Web MVC
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "What organisational practices determine whether an engineering organisation can keep...": https://scrivio-interview-library.netlify.app/spring-boot/rest-api-design/2532324022/