Tail latency
Definition
Tail latency is the high end of the latency distribution, usually described by upper percentiles such as P99 or P99.9 rather than the median or mean.
In practice
Tails come from queueing, garbage collection pauses, cold caches, retries, noisy neighbours and slow replicas. They matter more than the percentile suggests because one page load or fan-out request makes many calls: with 50 calls per page, about 40% of page loads include at least one P99 response. Load balancing by work in progress and well-chosen timeouts both aim at the tail.
Averages hide tails, and percentiles cannot be averaged across hosts; compute them from merged histograms. Reducing the tail usually means cutting variability (bounded queues, smaller requests, isolation) or hedging requests to a second replica after a delay, which costs extra load. Timeouts set below the tail turn slow requests into errors and retries.
Example
A service has a 20 ms median and a 400 ms P99; a page that calls it 30 times in parallel waits more than 400 ms on about 26% of loads.