Put a floor under a route and read a critical path
The light-speed minimum for a distance, the fraction of a measured round trip it explains, and the longest path through a stage graph — the only stages whose speed-up changes the answer.
A request is slow for one of four reasons — it went far, it went back and forth, it waited for the slowest of many, or it was the unlucky one in a hundred — and each has a number. The course puts a floor under latency with the speed of light, counts round trips, computes percentiles by rank, and builds the budget that a timeout and a retry have to fit inside.
Overview
By the end you can put a floor under a route, read a percentile off a sample, say what a fan-out does to it, add two stages correctly, and lay out a budget that a timeout and a retry fit inside.
The light-speed minimum for a distance, the fraction of a measured round trip it explains, and the longest path through a stage graph — the only stages whose speed-up changes the answer.
p50, p95 and p99 by nearest rank, and the reason the mean is none of them and cannot be made into one.
The probability that all n independent calls clear their p99, the n at which a p99 becomes the median, and the tail and extra load a hedge at the p95 buys.
The p99 of a two-stage sum by convolution — below the sum of the p99s — then a budget allocated backwards from an SLO with a timeout and retry count that fit inside it.
Lessons
The floors first (distance, round trips, the critical path), then the tail as an object, then what composition does to it, and last the budget that everything has to fit inside.
Capacity estimation, plus independence, computing probabilities, random variables, cartesian products and tuples, and graph traversal from discrete mathematics, and roots and radicals from algebra.
Sort the sample by hand once. The nearest-rank percentile is a position in a sorted list, and a reader who has done it once stops treating p99 as an average for good.
Read the fan-out and the convolution labs together. They are the same fact twice — independence composing — once making the tail worse and once making it better than the naive sum.
Keep milliseconds throughout. Mixing microseconds into a budget is the one arithmetic error this course reliably produces.
Where the tail comes from. Queueing is Queues and Utilisation; this course measures the tail and composes it.
How the measurement could be lying. Coordinated omission, bucket error and scrape intervals are Measuring Systems.
Congestion control as a subject. One bound — Mathis — is computed in “Packet Loss and Throughput” because it decides cross-region throughput; the algorithms behind it are not taught.