Fundamentalsp95p99percentilesp50

P95 / P99 latency

Definition

The Nth percentile latency is the value that N% of observed requests are faster than. P99 = 300 ms means 99 of every 100 requests finished within 300 ms and 1 took longer.

In practice

Percentiles expose the tail that averages smooth away. When a page fans out to many backend calls, the slowest call dominates, so a rare slow response at P99 becomes a common slow page. That is why SLOs are usually written against P95 or P99, not the mean.

Percentiles cannot be averaged across servers or time windows; aggregate the raw distributions (histograms) instead. Tail latency is driven by garbage collection pauses, queueing, cold caches, retries and noisy neighbours, so it is often improved by reducing variance rather than average work.

Example

A page that calls 50 services, each with a 1% chance of exceeding 200 ms, has about a 1 − 0.99^50 ≈ 39% chance that at least one call is slow.