The interview problem
An endpoint fans out to 100 shards. Design a response policy that handles partial results and stragglers explicitly.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume the caller can choose complete or partial-result semantics. Assign one absolute deadline and bounded fanout concurrency. Each shard response carries its coverage and version; aggregate only compatible results. For complete mode, missing shards mean failure rather than a plausible incomplete total. For partial mode, return coverage metadata and avoid metrics whose denominator requires absent shards.
2. Trace the design or derivation
Create deadline → dispatch bounded fanout → collect coverage → apply response policy → cancel unfinished work
Make missing shard IDs available to diagnostics without exposing internal topology to ordinary users. Cache keys must include the completeness policy and data version; otherwise a partial response can poison a cache later used for complete requests. Track useful coverage distribution in addition to HTTP success rate.
3. Calculate the example
If each of 100 independent shards succeeds by the deadline with probability 0.99, all succeed with probability 0.99^100, approximately 36.6%. Independence is illustrative; shared failures can change this substantially. Per-shard reliability is not endpoint reliability.
4. Failure cases and trade-offs
One unbounded fanout can exhaust connections before any timeout fires. Summing partial counts as complete undercounts silently. Smaller fanout waves reduce resource spikes but consume more wall-clock time. Hedging may help isolated stragglers only within an amplification budget.
5. Validation, follow-ups and self-review
Omit a shard, return incompatible versions and simulate correlated delays. Follow-up: when can cached data substitute for a missing shard? Self-review: define completeness, deadline propagation and bounded resource use.
Sources and related practice
Technical reference: research.google — Tail latency under distributed fanout; scenario calculations are original.
Source publication/update: 2013. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Reduce read-tail latency with bounded hedging; Execute analytical queries across workers.
Continue your preparation
Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.