Try
↑ ↓ move↵ openesc close

Interview prep / Percentiles

Junior · Percentiles · System design interview question

What does it mean when a service reports a p99 latency of 300 ms?

Sketch your own answer first, then compare it with the one below.

A strong answer

It means 99 percent of requests finished in 300 ms or less, and one percent took longer. Sort every latency in the window from smallest to largest and the p99 is the value 99 percent of the way along.

It does not say how slow the slowest one percent were. Those requests could be 301 ms or thirty seconds. That is why teams often look at a higher percentile as well, such as p99.9, or at the maximum.

The window matters too. A p99 over one minute and a p99 over a day are different measurements, and a p99 over very few requests is decided by a handful of them.

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