The interview problem

Practice prompt

A replicated read service has occasional slow replicas. Design delayed duplicate reads without turning a latency incident into overload.

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 idempotent reads and replicas meeting the requested freshness contract. Send one request, then hedge to a different failure domain only after a delay and within a shared attempt budget. Return the first acceptable response and cancel remaining work where supported. Record actual work consumed because cancellation may arrive after execution. Disable or restrict hedging when the backend is saturated.

2. Trace the design or derivation

Primary read
  → delay threshold
  → eligible hedge
  → first valid response
  → cancel remainder

Track latency by logical request as well as individual attempt. Otherwise two attempts can make success metrics appear better simply by changing the denominator. A hedge should carry the same absolute deadline, authorization and consistency requirement as the original, and should never outlive the caller's useful work window.

3. Calculate the example

At 1,000 logical reads/s, hedging 5% once creates at most 50 additional attempts/s, or 1,050 total before retries. Hedging every request doubles attempts to 2,000/s. Correlated slowdowns can make both copies slow while still paying the extra load.

4. Failure cases and trade-offs

Choosing the fastest stale response breaks consistency. Retries and hedges can multiply if their budgets are independent. A fixed delay is simple but may age badly as latency shifts; adaptive thresholds require stable measurements and overload guards.

5. Validation, follow-ups and self-review

Inject isolated stragglers and correlated saturation; compare p99 latency and backend work. Follow-up: when is cancellation too late to save cost? Self-review: budget attempts, preserve read semantics and measure amplification.

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 Bound retries across a service call chain; Keep a user's reads from moving backward across replicas.

Continue your preparation

Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.