Budget a latency target across a fan-out
NumericalBeginner⏱ 15 minAI Systemsfan-outquantilesbudgeting
Problem
A request fans out to independent shards and completes when the last one returns. The product target is a p99 of 200 ms for the parent.
- What per-shard quantile must sit at 200 ms?
- If each shard's latency is exponential with mean 20 ms, what is the parent's p99?
- 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| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Measure fan-out amplification and the value of hedging run | AI Systems | Coding | 1 hour | ||
| The per-stage quantile budget, and when it is tight | AI Systems | Proof | 1 hour |