Latency Budgets and Tail Measurements
Allocate an end-to-end deadline across sequential stages and measure percentiles on whole requests instead of adding independent summaries.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Stages must use a shared time boundary
For one request, sequential durations for name resolution, connection, queueing and application work can be added if they are measured without overlap. Parallel subrequests instead often contribute their maximum when the parent waits for all. A 100 ms budget with 20 ms already elapsed leaves 80 ms for work under that request’s deadline. Giving each retry another full 100 ms silently changes the contract.
Percentiles do not combine by ordinary addition
On different requests, the slowest DNS and application stages can occur at different times. Adding each stage’s 99th percentile generally gives neither an exact end-to-end percentile nor its cause. Measure the distribution of complete request times, then use coherent traces to diagnose typical and slow paths. Packet delay names network components. Little’s law describes stable averages, which answer a different question from the upper tail.[1]