‹ Study library
DevOps

Read service latency

Use percentiles and request counts to investigate a slow service.

Look at the distribution

A small group of very slow requests can be almost invisible in the mean. A 95th percentile describes the time at or below which roughly 95 percent of observations fall.

Narrow the question

Compare the same endpoint over comparable periods. Break results down by status and request volume. A quick error response can improve a latency chart while the service gets worse.

Exercise

Sort 100 request durations, with 94 taking 50 ms and six taking 2 seconds. Using the nearest-rank method, find the median and p95. The median is 50 ms and p95 is 2 seconds. Explain which requests each number hides.