Skip to content
RED SAGSkills
hardSite Reliability Engineer interview question

Your service fans out to many backends and its p99 latency is much worse than the backends. How would you reduce tail latency?

What the interviewer wants to hear

  • Explain how fan-out amplifies backend tail latency
  • Hedged or backup requests and tied requests
  • Find causes of variance such as GC, noisy neighbours, queueing
  • Reduce fan-out, use partial results or timeouts per backend
  • Load balancing that avoids slow replicas

Model answer

With fan-out, the slowest backend decides the response time, so if each backend is slow 1% of the time and we call 100 of them, most requests hit a slow one. First I look for the sources of variance on backends: garbage collection pauses, CPU throttling, noisy neighbours, background jobs like compaction, and queueing at high utilization. Then I add tail-tolerant techniques. Hedged requests send a second copy to another replica if the first has not replied by around the p95, which cuts the tail for a small extra cost; tied requests let replicas cancel each other. Load balancers like least-request or power of two choices avoid slow replicas. Where the product allows, I return partial results after a per-backend timeout, and I reduce fan-out by better sharding or caching.

Can you answer it under time pressure?

Take a timed hard round and get scored on every answer.

Start mock interview

More hard Site Reliability Engineer questions