How it works
A response-time target is a budget shared by network travel, application work, data access, and serialization. Rough magnitudes show where it goes. These are approximate and vary by hardware: a memory read takes about 100 nanoseconds, an SSD read about 100 microseconds, a round trip within one data center about 0.5 ms, and a round trip between continents about 100 to 200 ms. One intercontinental round trip can use most of a 200 ms target. Compare options with these figures, then measure your own path.
Averages hide slow requests, so targets use percentiles: a p95 of 180 ms means 95% of requests finish within 180 ms. Percentiles do not add. If the database p95 is 180 ms and the application p95 is 30 ms, the request p95 need not be 210 ms, because the slowest database calls may not coincide with the slowest application work. Measure the whole request end to end. A page waiting on ten independent backend calls also has about a 10% chance that at least one lands in its slowest 1% (1 − 0.99¹⁰).
Availability percentages need a time window. At 99.9% over a 30-day month, the allowed unavailable time is 0.1% × 30 × 24 × 60 = 43.2 minutes; at 99.99% it is 4.3 minutes. Google’s site reliability engineers call this allowance an error budget. That figure is a target, not a guarantee from adding replicas, and each extra nine costs more, so a back-office tool rarely needs the same target as checkout.
A page has a 200 ms target, but the database alone takes 180 ms at the 95th percentile. What does the estimate reveal?
One request in 20 spends at least 180 ms in the database, so those requests have at most 20 ms left for everything else, and the page’s own p95 cannot be below 180 ms. That does not make 20 ms a p95 allowance for the rest, because percentiles do not add. Measure the whole request end to end, then reduce the dominant cost or revisit the target.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Split latency across the full request path and check its slowest cases.
- Percentiles do not add, so measure end to end.
- Convert availability targets to time and plan the failures that could consume it.