Distributed ReliabilityAdmission, fairness and overloadPrincipal
How would you prove a regional inference failover has independent dependencies and enough end-to-end capacity?
By Amit Kumar2 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
Region B serves a small healthy slice. When A fails, B’s GPUs can scale but vector search and a shared quota service saturate. Trace the complete serving dependency chain, choose recovery and degraded-service objectives and design a full-load failure drill that preserves tenant limits rather than treating a health check as capacity evidence.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
Only parts of it. An endpoint health check proves that a particular request path worked at current traffic. It does not prove capacity for the combined regional load, or independence from control planes, identity, keys, retrieval, telemetry and rate-limit stores. AWS's multi-region dependency guidance emphasizes avoiding shared fate across regional components, and its disaster-recovery testing guidance calls out inadequate secondary capacity and quotas. Those are concrete design risks, not a guarantee that a particular cloud failover will fail.
I would draw the user journey, not just the gateway and GPU fleet: admission, authentication, model routing, prompt or adapter loading, retrieval, tools, result storage, streaming and billing. For each dependency, record where it lives, what traffic it sees during failover, what data must already be replicated, and what happens if it is unavailable. Cross-region reads back into failed A defeat the point. B may have enough GPUs but insufficient model weights, KV warm-up capacity or search partitions. Shared rate limits may be safe only if their data plane is available independently of A.
Design to a specified recovery objective and degraded-service policy. Reserve or prearrange burst capacity where possible. Route essential requests first, limit expensive long-context and batch work, and reject early when admission cannot honor deadlines. Ensure per-tenant limits do not disappear under failover. Test traffic shift gradually with failure injection that removes A and then separately removes shared dependencies. Measure successful end-to-end tasks, p99, queue growth and data freshness in B. A partial failover can be worse than a decisive one if retries bounce between regions and double load.
Would I keep B at full idle capacity all year? Maybe not. A warm standby can be cheaper with a longer recovery time, but the product must accept that contract. The model provider recovered. Why did 50,000 agents take it down again? is a retry storm after a model provider recovers. This is a regional failure in which supposedly independent services and quotas share fate. A green health check is not evidence of a full-load recovery plan.
Related questions
Keep practising distributed reliability
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux