Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

Your platform team has built an internal API gateway, service registry and config server over eight years. Cloud-managed equivalents now exist. How would you decide what to keep and what to replace?

We decide component by component, each with its own ADR, not as one package. For each one we list its yearly cost in engineer time, incidents, upgrades and security patching, and check whether it still gives a capability the managed equivalents lack, which is rare for commodity infrastructure such as gateways, registries and config servers. Components we replace are migrated behind compatibility layers so client services change little, we account for the exit cost and lock-in of the managed options, and we plan new, valuable work for the people who built the internal versions, whose knowledge the migration needs.

Why this question is asked

Internal platforms built years ago were often the right call: the managed services did not exist or were immature. Eight years later, the same components can be a quiet drain on the platform team and a risk when they fall behind on security patches. But they also carry knowledge, integrations and people's pride. Interviewers ask this to see whether a senior leader can make a fair, evidence-based decision and handle the human side. In this answer, we will measure each component's cost, test where it still adds value, plan migrations with compatibility layers, weigh lock-in, take care of the team, and see why we decide per component.

1Listing the True Yearly Cost of Each Component

We start with data, separately for the API gateway, the service registry and the config server. The direct cost is engineer time: how many people spend how much of their week maintaining it, adding features, answering questions and keeping it running. Then incidents: how many outages or degradations it caused in the last two years, and their impact. Then upgrades: how far behind it is on its own dependencies, such as the Java version, Spring Boot and Netty, and how long the last major upgrade took. Finally security patching: how quickly it receives fixes for new vulnerabilities, compared with a provider that patches continuously.

Suppose the analysis shows the gateway takes 2.5 engineers a year and caused four incidents, the registry takes 0.5 engineers and was stable, and the config server takes 1 engineer and blocked last year's Spring Boot upgrade for two months. Already the three components look very different, which is the first argument for deciding them separately.

Yearly cost per internal component (example)
ComponentEngineers per yearIncidents (2 years)Upgrade or patch painUnique capability?
API gateway2.54high, custom Netty codecustom auth plugin, portable
Service registry0.50lownone
Config server1.01blocked Boot upgradenone
Numbers are illustrative; the point is to collect them per component.

2Checking Where the Internal Version Still Earns Its Place

Next we ask, for each component, what it does that the managed equivalent cannot. For commodity infrastructure the honest answer is usually 'nothing important'. Cloud API gateways handle routing, rate limiting, TLS and authentication; managed or platform-native service discovery and Kubernetes services cover the registry; managed configuration and secret stores cover the config server.

Sometimes there is a real capability, such as a gateway plugin that implements a regulated authentication flow, or an integration with a legacy system. Then we check whether that capability can live somewhere else: a small service behind the managed gateway, or a plugin in the managed product. Rarely does one capability justify keeping a whole platform component. And we must separate real capability from habit: 'our teams know it' is a migration cost, not a capability.

3Migrating With Compatibility Layers

For components we replace, the goal is that the hundreds of client services change as little as possible. A compatibility layer is code that keeps the old interface working on top of the new system. For a config server, we might keep the same property names and expose them through a Spring Boot configuration source that reads from the managed store, so services only change a dependency version. For a gateway, we migrate routes gradually, running both gateways and moving traffic route by route, with the same headers and authentication behaviour.

Java
# Before: services read config from the internal config server
spring.config.import=configserver:http://config.internal
# After: same property names, now from the managed store via a shared starter
spring.config.import=platform-config: # starter maps the managed store to the old names
# (the exact import prefix depends on the starter or cloud integration; check your version)
Step throughReplacing one component without breaking clients
  1. Measure cost and unique capabilitiesper component
  2. Replace this component?
    YesWrite the ADR and build a compatibility layerNoKeep it, record why and when to revisit
  3. Migrate clients in wavesleast critical first
  4. Run old and new side by sidecompare behaviour, keep rollback
  5. Retire the internal componentand its on-call rota

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

Notice that the services' code, which reads properties such as payment.timeout, does not change at all. That is what makes a migration across hundreds of services realistic: each service team spends an hour, not a sprint.

4Accounting for Exit Cost and Lock-In

Managed services are not free of risk. We estimate their running cost at our traffic, for example gateway pricing per million requests, and compare it with the people cost we save. We also consider lock-in: how hard it would be to leave the provider later. Standards help here. A gateway configured through standard OpenAPI definitions, or service discovery through Kubernetes, is easier to move than proprietary configuration.

A useful rule is to keep a thin layer we own between client services and the provider, such as the shared starter in the config example. It costs little and turns a future provider change into an update of that layer rather than of every service.

5Taking Care of the People Who Built It

The engineers who built and ran these components for eight years may hear 'replace' as 'your work was wasted'. It was not: the components served the company for years, and their builders understand exactly what the platform does, including the strange edge cases no document mentions. That knowledge is essential for a safe migration.

So we involve them from the start, ideally asking them to lead the migration design, and we plan their next work explicitly: building the compatibility layers, then higher-value platform work such as developer self-service, golden path templates or cost optimisation. Saying this early, before rumours start, keeps the team engaged instead of looking for the exit.

6Deciding Per Component, With an ADR Each

Bundling the three components into one 'move to managed' decision is tempting, but it mixes very different cases. In our example, the registry is cheap and stable but trivially replaced by platform-native discovery, the config server is blocking upgrades, and the gateway is expensive but has one real capability. Each gets its own ADR with its costs, options, decision and consequences, and its own timeline. Perhaps the config server moves first because it unblocks upgrades, the registry next, and the gateway last, after its custom auth plugin has a new home. Deciding per component also makes it easy to stop or change course on one without unravelling the others.

7Follow-up questions

What if the internal gateway is cheaper than the managed one at our traffic?

Then compare total cost, not just the bill: engineer time, incidents and patching are usually larger than the price difference. If the internal version is still cheaper after that and has no upgrade or security problems, keeping it can be right, recorded in an ADR with a review date.

How do you keep the business from seeing this as pure cost?

Show what the freed capacity will deliver, for example self-service environments that cut lead time, and the risk reduction from faster security patching. A migration that only moves cost around is hard to justify; one that frees three engineers for work teams are asking for is easy.

What is the biggest migration risk for a gateway?

Subtle behaviour differences: header handling, timeouts, path rewriting, error formats and authentication edge cases. Running both gateways side by side and comparing responses for real traffic before switching each route catches most of them.

8Conclusion

In this answer, we saw how to decide what to keep from an internal gateway, registry and config server: measure each component's yearly cost in people, incidents, upgrades and patching, check whether it still offers a capability the managed options lack, migrate the commodity ones behind compatibility layers, account for exit cost and lock-in, plan meaningful work for the people who built them, and decide each component in its own ADR.

What to say in the interviewAbout 90 seconds aloud

Open with

I would decide per component, not as one package, because the gateway, registry and config server will have very different costs. For each, I would collect the yearly cost: engineers maintaining it, incidents it caused, how painful upgrades and security patching are.

Then, if they want more

Say the gateway takes two and a half engineers and caused four incidents, the registry is cheap and stable, and the config server blocked our last Spring Boot upgrade. Then I would ask what each still does that the managed equivalent cannot.

For commodity infrastructure it is usually nothing, and where there is a real capability, like a special auth plugin, I would look for a new home for that piece rather than keeping the whole component.

For the ones we replace, I would build compatibility layers, for example a shared starter that serves the same property names from the managed config store, so client services change a dependency and nothing else, and migrate in waves with old and new side by side.

I would also count the managed options' running cost, exit cost and lock-in, and keep a thin layer we own in between. And I would involve the people who built these components early, ask them to lead the migration design, and plan their next work, because their knowledge is what makes the migration safe. Each component gets its own ADR and timeline.

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 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 "Your platform team has built an internal API gateway, service registry and config server...": https://scrivio-interview-library.netlify.app/architecture/architecture-decisions/07c9732fc3/