Design a Resilient Dependency-Orchestrating Service
Design a synchronous API that combines three to five internal services while meeting a sub-ten-second latency objective and at least 99 percent availability.
Problem statement
For this exercise, assume you own a synchronous API that validates one client request, calls three to five internal services, and composes their results. The client-visible operation must finish in under 10 seconds and reach at least 99 percent availability.
Some dependency results may be mandatory while others may be optional, but you must state and justify that split. Also state assumptions for workload, dependency latency, result freshness, consistency, and regional scope.
Design deadline allocation, parallelism, timeouts, retry budgets, failure isolation, caching, overload control, graceful degradation, observability, and recovery. The business domain and the internals of each dependency are intentionally outside scope; use neutral result components rather than inventing a product.
What to build
- A client can submit one request and receive a composed response based on the required dependency results within the operation deadline.
- When optional results are missing, the service may return an explicitly partial response; missing mandatory results produce a distinct unavailable outcome.
- The service limits concurrent calls, retries, and queued work for each dependency so one failure cannot consume all request-serving capacity.
At scale
- The client-visible operation has a hard deadline under 10 seconds, including admission, queueing, dependency calls, aggregation, and response delivery.
- The service must achieve at least 99 percent availability under the explicitly defined complete-or-allowed-partial success contract.
- Interview contract: the candidate states and justifies peak traffic, dependency latency distributions, required-versus-optional results, freshness, consistency, and regional assumptions.
- Retries, hedges, queues, and cache fallbacks must have explicit budgets so a dependency incident cannot create unbounded load or silently violate result semantics.