Skip to main content

Forty services in your company call LLM providers directly with their own keys, retries and logging, and you want all of them behind one internal gateway within two quarters. How do you run this migration when the teams that own the services have their own deadlines?

System design · Pro 2

Short answer

Make migrating cheaper than not migrating. I would ship a drop-in client so a service moves with a small change, migrate the first three myself to prove it, and sequence the rest by risk and spend. I would publish a tracker, set a date after which direct keys are revoked, and keep a rollback path for every service.

Deeper answer

Migrations usually fail on the last few services, not on the technology. The first 30 services move in weeks and the last 10 stay for a year, so two systems must be run. The plan must therefore reduce the effort per team and create a firm end date. A compatible client library, automated pull requests, and gateway features that teams actually want, such as per-team cost reports and provider fallback, give them a reason to move.

Risk control is the other half. The gateway becomes a shared point of failure, so it needs load testing, a canary per service, and a quick way back. For example, move low-traffic internal tools first, then the two services that make up 60% of spend, with their owners on the call. Interviewers listen for incentives, sequencing, leadership backing for the cut-off date, and honesty about the new single point of failure.

What a strong answer covers

Answer it out loud in the mock interview about 3 min

Follow-ups to expect

Common mistakes

Learn it

Grow an AI app in layers: context, guardrails, routing, caching and agents

Practice System design questions

More on this topic

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.