Why do teams look at percentiles instead of the average latency?
Sketch your own answer first, then compare it with the one below.
A strong answer
Latency is skewed. Most requests are fast and a few are slow, so the average sits above the typical request and far below the slow ones. It describes nobody's experience.
A small share of slow requests barely moves the mean. If two percent of requests take twenty times longer, the mean rises by a fraction, while the p99 jumps to the slow path's latency. A dashboard built on averages can stay green while one user in fifty has a bad time.
Read the median for the typical request and a high percentile for the tail, side by side. Page loads that make many calls feel the tail more often than the average suggests, since each call is another chance to draw a slow one.
Sources
- Jeffrey Dean, Luiz André Barroso (2013). The Tail at Scale.