Tail latency is the response time of the slowest requests in a system, usually reported as the 99th percentile (p99) or higher. A p99 figure is the time that 99 out of 100 requests beat; the remaining request is the tail. Two services with the same average can have very different tails, and users remember the tail.
Why does the tail matter more than the average?
Because modern requests fan out. Jeffrey Dean and Luiz André Barroso made the case in The Tail at Scale (Communications of the ACM, 2013). They describe a server that usually answers in 10 ms but takes one second for one request in 100. "If a user request must collect responses from 100 such servers in parallel, then 63% of user requests will take more than one second." The arithmetic is simple: the chance that all 100 servers are fast is 0.99 to the power of 100, about 37%.
A web page that waits on several backend calls is a small version of the same problem. Its own p99 is at least as bad as, and usually worse than, the p99 of any single call it makes.
How does EOXLABS treat tail latency?
EOXLABS publishes a design target of under 50 ms at the 50th percentile (p50) for responses at the edge. It is a target, not a measured guarantee, and a median target says nothing about the tail. EOXLABS therefore reports p50 and p99 separately, per route, and treats known slow paths as defects to remove rather than noise to average away:
- a cold start after a deploy or eviction;
- a cache miss that falls through to a distant origin;
- a new database connection instead of a pooled one;
- a retry that waits out a full timeout before trying again.
Dean and Barroso also describe "hedged requests": send a request to one replica, then to a second after a short delay, and use whichever answers first. EOXLABS uses hedging only for reads, or for writes protected by an idempotency key, because a hedged write without one can run twice. MERIDIAN, the EOXLABS observability product listed on the products page, traces requests across Workers, Durable Objects and origins, which is how a slow tail is followed to the hop that causes it.
The latency budget for edge requests is the subject of the sub-50 ms edge latency note. Voice and streaming work is where tails hurt most, covered under real-time voice systems.
What is tail latency confused with?
- Average latency. An average can look healthy while one request in a hundred is unacceptably slow.
- A user's experience. A session makes many requests, so a user meets a tail-slow request far more often than "one in a hundred" suggests.
- TTFB. Time to first byte is one phase of one request. Tail latency describes a whole distribution.
- A number you can average. Percentiles from different servers cannot be averaged into a fleet-wide percentile; they must be computed from the combined data.
More performance terms are in the EOXLABS glossary.