Skip to content
nonconvexcard

Budget a latency target across a fan-out

NumericalBeginner⏱ 15 minAI Systemsfan-outquantilesbudgeting

Problem

A request fans out to n=50n = 50 independent shards and completes when the last one returns. The product target is a p99 of 200 ms for the parent.

  1. What per-shard quantile must sit at 200 ms?
  2. If each shard's latency is exponential with mean 20 ms, what is the parent's p99?
  3. Roughly how many samples are needed to estimate the shard quantile from part 1 with any precision, and what does that imply about measuring it?

Compute the requested quantities and say what they mean. A number without an interpretation is not an answer.

Hints

Hints — 0 of 2 revealed

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
Measure fan-out amplification and the value of hedging runAI SystemsCodingIntermediate1 hour
The per-stage quantile budget, and when it is tightAI SystemsProofIntermediate1 hour