Scrivio Interview library
ScenarioAdvanced6 min read · updated 13 November 2026

A public API's v1 is scheduled for shutdown in 90 days. 400 integrations still call it, about 9 percent of traffic, and several large customers have not replied to emails. Leadership will not accept a big outage on the shutdown date.

How do you run the retirement so it finishes on time without surprising customers?

Start with data: measure v1 usage per API key and endpoint and rank integrations by traffic and revenue, so account managers can reach the largest customers directly. Signal in band with the Deprecation header (RFC 9745) and the Sunset header (RFC 8594), plus portal and dashboard warnings; make migration easy with a guide, field mapping and SDK updates; run scheduled, announced brownouts to flush out forgotten integrations while there is still time; and decide exceptions in advance, such as paid extended support with an end date, while keeping the final shutdown reversible for a few days.

Why this question is asked

Retiring an API version is mostly a communication and risk-management problem. The technology to turn v1 off is trivial; the hard part is that 400 integrations depend on it, many owned by people who no longer read the emails we send. Leadership's constraint, no big outage on the date, rules out the easy path of switching it off and waiting for complaints. Interviewers ask this to see whether a senior engineer can run a cross-team program with measurable progress. In this answer, we will plan the 90 days: measuring usage, signalling deprecation inside the API itself, making migration cheap, flushing out forgotten integrations with brownouts, and handling exceptions and the final day.

1Measure First: Who Still Calls v1?

Emails go unanswered because they go to the wrong people: a developer who left, a shared inbox, a procurement contact. The API itself knows who is calling. We build a report of v1 traffic per API key and per endpoint over the last 30 days, join it with the customer account, and rank integrations by traffic and by revenue of the customer.

That ranking drives everything. Usually a small number of integrations account for most of the 9 percent of traffic, and several large customers are among them. Those go to their account managers and solution engineers for direct contact, meetings and named owners on both sides. The long tail of small integrations gets automated communication. We update the report weekly and use it as the program's progress chart: the target is a steadily falling v1 share, with every remaining large integration having a migration date.

Ranking v1 integrations
GroupIntegrationsShare of v1 trafficApproach
Top customers by revenue1562 percentaccount manager, named contacts, weekly check
Mid-size8530 percenttargeted emails, portal banner, office hours
Long tail3008 percentautomated notices, headers, brownouts
Illustrative numbers; the real report comes from per-key traffic.

2Signal Inside the API

Every v1 response should carry the deprecation in machine-readable form. The Deprecation header, standardised in RFC 9745, says that the resource is deprecated and since when; the Sunset header, from RFC 8594, gives the date after which it will stop responding; and a Link header points to the migration guide. Many client libraries and API gateways log or surface these headers, and developers who inspect a response will see them.

We add the same message where developers actually look: a banner in the developer portal for keys that call v1, a warning on their usage dashboard listing the exact endpoints still in use, and notices in the changelog and status page. In-band signals reach the developers who never read email.

Java
HTTP/1.1 200 OK
Deprecation: @1794441600 # RFC 9745: deprecated since 2026-11-12 (Unix time)
Sunset: Thu, 11 Feb 2027 00:00:00 GMT # RFC 8594: stops responding after this date
Link: <https://developer.example.com/migrate/v1-to-v2>; rel="deprecation"; type="text/html"
Content-Type: application/json

The exact date format of the Deprecation header is defined in RFC 9745 as a structured field date; check the RFC and your gateway's support before relying on it.

3Make Migration Cheap

Customers postpone migrations because they are expensive and risky for them. We reduce both. A migration guide maps every v1 endpoint and field to its v2 equivalent, with before-and-after request examples. Our SDKs get a new major version that uses v2 internally while keeping method signatures as close as possible, so many customers migrate by upgrading a dependency. Where it is feasible, a compatibility layer that serves v1 requests by calling v2 lets us retire the old implementation earlier, even if the v1 URLs live a little longer. We also offer office hours and a sandbox where customers can test their v2 integration.

4Scheduled Brownouts

Some integrations are forgotten: a nightly job written years ago, still running, still on v1, with nobody who remembers it. No email will find it. The only reliable way to find it is to make it fail, briefly and safely, while there is still time to fix it.

A brownout is a short, announced period during which v1 returns errors, for example 410 Gone with a body that links to the migration guide. We schedule a series that grows: 10 minutes about 60 days before the sunset, then an hour at 30 days, then a few hours at 14 days, at different times of day so jobs that run at night are also caught. Each brownout is announced in advance in the portal and headers. The forgotten integration fails, its owner gets paged or notices, and they contact us with 30 or 60 days left instead of on shutdown day. Usage after each brownout usually drops noticeably.

Step through90-day retirement plan
  1. Day 0: per-key usage reportrank by traffic and revenue
  2. Day 0 to 90: headers, portal, account managersDeprecation, Sunset, Link
  3. Day 30: 10-minute brownout410 Gone with migration link
  4. Day 60: 1-hour brownoutdifferent time of day
  5. Day 76: 4-hour brownoutlast call for forgotten jobs
  6. Remaining traffic is only approved exceptions?
    YesShut down on day 90, reversible for a few daysNoEscalate named integrations

6 steps in order. Play them, or step through them one at a time.

5Exceptions and the Final Day

Some large customer will not be ready. We decide the policy before anyone asks, so it is consistent: an exception is paid extended support, for a specific integration, with a firm end date, for example 90 more days, approved by a named leader. Technically, the gateway allows v1 only for those API keys after the sunset date and returns 410 Gone for everyone else.

On the shutdown day, we keep the change reversible: v1 is disabled by configuration, not deleted, and the code and infrastructure stay in place for a few days. If an important integration we missed breaks, we can turn v1 back on for that key in minutes while the customer migrates. After a quiet week, we remove the code. Leadership gets what it asked for: no big outage, because the remaining traffic on the day consists only of approved exceptions and integrations that failed loudly in brownouts and were contacted.

6Follow-up questions

What do you do about a large customer who cannot migrate in time?

First find out why: lack of engineering time, a blocking feature gap in v2, or a vendor they depend on. A feature gap is our problem and may need a v2 change. For capacity problems, we offer help from solution engineers and, if needed, paid extended support for their specific API keys with a written end date. The exception is limited in time and scope, so it does not become a reason for everyone else to wait.

Why not just keep v1 running forever?

Every live version costs maintenance, security patching and testing for every change, and it holds back improvements because v1's constraints apply to the shared code. Old versions also tend to have weaker security, for example older authentication schemes, which is a risk in itself.

7Conclusion

In this answer, we ran a v1 retirement as a measured program: a per-key usage report ranked by traffic and revenue, direct contact for the largest customers, Deprecation and Sunset headers plus portal and dashboard warnings, a migration guide and SDK updates, scheduled brownouts that reveal forgotten integrations while there is time, and an exceptions policy with paid, time-limited extended support and a shutdown that can be reversed for a few days.

What to say in the interviewAbout 90 seconds aloud

Open with

I would run it as a program driven by data, not by emails. First, measure v1 usage per API key and endpoint, join it with accounts, and rank integrations by traffic and revenue.

Then, if they want more

Usually a small number of integrations carry most of the remaining traffic, so account managers contact those customers directly with named owners and weekly follow-ups, and the long tail gets automated notices.

Second, signal inside the API: every v1 response carries the Deprecation header from RFC 9745, the Sunset header from RFC 8594 with the shutdown date, and a link to the migration guide, and the developer portal and usage dashboards show warnings with the exact endpoints each customer still calls.

Third, make migration cheap: a field-by-field mapping, examples, updated SDKs, and maybe a compatibility layer. Fourth, scheduled brownouts. Some integrations are forgotten jobs that nobody will find from an email, so I would turn v1 off for ten minutes about two months out, then an hour, then a few hours, announced and at different times of day.

Forgotten integrations fail while there is still time to fix them. Finally, decide exceptions in advance: paid extended support for specific keys with a firm end date. On the day, v1 is disabled by configuration, not deleted, so we can turn it back on for a key within minutes if we missed something.

About this answer

Last updated
13 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 official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
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 "How do you run the retirement so it finishes on time without surprising customers?": https://scrivio-interview-library.netlify.app/architecture/api-design-at-scale/f23dbc1b8d/