Try
↑ ↓ move↵ openesc close

Interview prep / Percentiles

Junior · Percentiles · System design interview question

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

Learn it by running it

The percentiles and why averages lie lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms