Latency Tolerance: How Much Delay Users and Services Accept
Latency tolerance is the delay a user or a calling service accepts before it gives up. Learn the limits, how to measure them and turn them into test gates.
Latency tolerance is the longest delay a user, or a calling service, accepts before the experience degrades or the caller gives up. For people it is a perception limit that changes with the action. For services it is a number in configuration: a timeout, a deadline or a retry rule. A test threshold is useful only when it comes from one of these two sources.
Prerequisites
- A list of the user-facing requests you care about.
- Read access to the timeout and retry configuration of every service on those request paths.
- Real user monitoring or analytics data with response time per page or action, if you have it.
- A baseline load test of the system, so you know normal latency.
- A MaxoPerf account with a test for the system. For the slow-dependency step, also a virtual service standing in for one dependency.
The three human limits
Three response-time limits have stood for decades. Robert Miller described them in a 1968 paper on response time in human-computer conversation, and Jakob Nielsen later restated them for web and application design.
| Limit | What the user perceives |
|---|---|
| About 0.1 s | The system feels instantaneous. The user sees the result as caused by their own action. |
| About 1 s | The user notices the delay but keeps their flow of thought. |
| About 10 s | The edge of keeping attention on the task. Past this, users switch away. |
Treat these as anchors, not as thresholds to copy. They tell you the order of magnitude to aim for. They do not tell you the right number for your checkout page.
Tolerance depends on the action
A single global limit hides the fact that users judge each action against what they expected. A rough ladder, as a starting point for your own research:
- Typing feedback and button press acknowledgement. Close to the 0.1 s limit. A visible reaction matters more than the final result.
- Search results and page navigation. Around the 1 s limit. Users expect a short wait and notice when it stretches.
- Checkout and payment confirmation. The user accepts more delay here because the action feels weighty, but also abandons less forgivingly if nothing happens, so a progress indicator matters as much as the number.
- Report export or file generation. Seconds to tens of seconds is accepted when the user asked for something large. Show progress or hand the job off.
- Background jobs. The user is not waiting. Tolerance is set by the next consumer, for example “ready before the morning report”.
Write the class of each request next to its limit. That table becomes the input to your test criteria later.
Apdex zones turn tolerance into a score
Apdex formalises the idea with one threshold T per request class. A response at or below T is satisfied. A response above T and up to 4T is tolerating. Anything slower is frustrated. The score is (satisfied + tolerating / 2) / total, as covered in Apdex, percentiles, or SLO compliance. The tolerating zone is the useful part for this topic: it states that users put up with some slowness, up to a limit, and that the limit is four times the satisfied threshold.
The weakness is the choice of T. If T is a guess, the score is a guess. Derive T from the action table above or from measured behaviour, which the next section covers.
Machine tolerance: timeouts, retries and deadlines
A calling service has a precise tolerance, and it is written down, although often nobody remembers where. It lives in:
- Client timeouts: connect timeout, read timeout, total request timeout.
- Retry policy: how many attempts, which errors, what backoff.
- gRPC deadlines, which propagate down the call chain, so a downstream service sees the time the caller has left.
- Circuit breaker settings: the slow-call threshold that opens the breaker.
- Load balancer and gateway idle and request timeouts.
A tolerance of “5 seconds” at the caller means a dependency answering in 5.1 seconds is a failure, even if it eventually succeeded. Worse, the caller retries, which adds load to the already slow dependency. The retry storms article covers that failure mode.
Latency budgets across a call chain
A user-facing tolerance has to be shared by every hop behind it. If the page must respond within 800 ms, the sum of the hops, plus network time, must fit inside it. Writing the budget down turns a vague “make it faster” into a per-service number:
# Latency budget for GET /orders/{id}, user-facing limit 800 ms at p95gateway: 30 msorders-service: 150 ms inventory-service: 120 ms # called in parallel with pricing pricing-service: 120 msdatabase reads: 60 msnetwork and serialization: 80 msreserve: 360 msThe numbers above are an example of the format, not a recommendation. The reserve exists because budgets are consumed in the tail, not at the median.
Fan-out makes the tail matter
When one request calls many backends in parallel and waits for all of them, the request is as slow as the slowest call. A backend that is slow on 1 percent of calls becomes slow on a much larger share of user requests once you fan out to dozens of them. Tail latency and fan-out works through the arithmetic. The consequence for tolerance: the limit you set for a leaf service must be stricter than the limit the user sees, and it must be set on p99, not on p50.
Tolerance is a distribution question
“Users accept 1 second” is incomplete. It needs a share: 95 percent of requests under 1 second, 99 percent under 2.5 seconds. Averages are the wrong summary, because a mean of 400 ms hides a tail that crosses every limit above. See why average response time misleads under load and the latency percentiles lesson. A tolerance statement has three parts: the percentile, the limit, and the window, such as “p95 under 800 ms for search, measured over steady state.”
Measure real tolerance, not assumed tolerance
The numbers from the literature are the starting guess. Your users tell you the real one in two ways.
- Abandonment against latency. From real user monitoring or analytics, bucket sessions or page loads by response time, for example 0 to 0.5 s, 0.5 to 1 s, 1 to 2 s, and so on. Plot the share of users who left, or did not complete the next step, in each bucket. The point where the curve bends is your observed tolerance for that action. Check that you are comparing like with like: slow pages also tend to be heavy pages and mobile networks, so segment by device and route.
- Timeout and retry audit. Search the code and configuration of every service on the path for timeouts, retries and deadlines. List them in one table with the service, the setting, the value and the owner. Mismatches show up fast: a client that waits 30 seconds on a gateway that cuts at 10, or three retries at each of three layers.
Both outputs are inputs, not conclusions. Re-check them after each major change to the page or the dependency graph.
How to turn tolerance into load-test failure criteria
- List the actions that matter. Pick the five to ten requests or transactions where users or callers would notice a delay.
- Assign each a class and a limit. Use the action table, your abandonment data and the caller timeout. Take the stricter of the user limit and the caller limit minus a safety margin.
- Pick the percentile. p95 for most user actions, p99 for fan-out leaves and for anything with a hard caller deadline.
- Add an error criterion. A request that fails fast is not a fast request. Gate on error rate as well, with timeouts counted as errors.
- Add a throughput floor. A test that never reached its target load proves nothing about tolerance.
- Fix the measurement window. Exclude ramp-up and warm-up, and gate on the steady-state period.
- Write the criteria as data. Keep them in the test, one row per label, so each run produces its own verdict.
GET /search p95 < 1000 msPOST /checkout p95 < 2000 msGET /orders/{id} p99 < 800 msoverall error rate < 1 %throughput > 200 req/sThe values in that block are placeholders. Replace them with the limits from steps 2 and 3. If you are unsure how tight to be, performance test thresholds covers how to set and revise them, and baselines, SLOs and error budgets covers how they connect to a service objective.
Test tolerance by slowing a dependency
Passing at normal dependency speed says little about tolerance, since the question is what happens when something behind you gets slow. Test it directly:
- Run the test with all dependencies at normal latency to get a baseline.
- Replace one dependency with a stand-in whose latency you control.
- Raise that latency in steps, for example to 2 times and 4 times its normal value, holding the load constant.
- Record at each step which of your criteria breaks first, when timeouts start, and when retries add load.
The first step where something breaks is the effective tolerance of your system to that dependency. It is often lower than the caller’s configured timeout, because queues build up before any single call times out.
A worked example (hypothetical numbers)
Suppose GET /orders/{id} has a p99 limit of 800 ms. It calls a pricing service in parallel with inventory, and the order service has a 500 ms timeout on pricing with one retry. All numbers below are invented for illustration.
| Pricing latency | Order p99 | Error rate | What happened |
|---|---|---|---|
| Normal (about 100 ms) | 420 ms | 0.1 % | Within limits |
| 2 times normal | 560 ms | 0.1 % | Within limits |
| 4 times normal | 910 ms | 0.6 % | p99 criterion breached |
| 6 times normal | 1,350 ms | 7 % | Timeouts at 500 ms, retries double the load on pricing |
The finding is that the order endpoint tolerates pricing at about 3 times its normal latency, and that the retry setting turns a latency problem into an error problem beyond that. The fixes are a shorter timeout with no retry on this path, or a cached fallback price.
Run it in MaxoPerf
MaxoPerf holds both the criteria and the slow dependency.
- Failure criteria. On a test, add criteria on any run metric, such as p95 latency or error rate, with a comparator and threshold, and choose a request label to gate one endpoint. A breach marks the run failed and stops the runners early when you choose that action. See Failure criteria pass/fail gates and the performance tests guide.
- Slow dependency. A virtual service stands in for a dependency. Its latency multiplier scales the latency of every transaction from 0 to 10 times, and a running service applies a change within a few seconds, with no redeploy. That makes the stepped test above a series of runs where only the multiplier changes. Setup is in create and deploy. For the wider case of replacing a dependency you are not allowed to load, see third-party API mocks in load testing.
Run each step as a separate run so the results stay comparable, and name them by multiplier. The run that first fails a criterion is the one to open.
Troubleshooting
- A criterion shows No data. Its label matched no requests. Pick the label from the run’s suggestions or use All labels.
- The run passes at every multiplier. The dependency is not on the request path you gate, or a cache absorbs it. Gate the label that calls the dependency and bypass the cache for the test.
- Errors jump while p99 stays flat. Timeouts fire before slow responses finish, so failed calls drop out of the latency numbers. Gate on error rate, and count timeouts as errors.
- Load climbs as latency rises. Retries add requests. Set retries to zero for one run and compare.
- Results differ between runs. The baseline moved. Rerun the 1x step in the same session and keep warm-up out of the gate window.
- Abandonment data shows no clear bend. The segments mix devices and routes. Split the data by device and route, then bucket again.
Common mistakes
- Using one global limit for every endpoint.
- Quoting the 0.1 s, 1 s and 10 s limits as if they were thresholds for your product.
- Setting a leaf service limit equal to the user-facing limit, ignoring fan-out.
- Leaving retries enabled in the test without noticing they inflate load.
- Gating on the mean.
- Never checking the numbers against real abandonment data.
Questions this article answers
What is latency tolerance?
Latency tolerance is the longest delay a user, or a calling service, accepts before the experience degrades or the caller gives up. For people it is a perception limit that depends on the action. For services it is a configured timeout, deadline or retry rule.
How much latency do users tolerate?
Response-time limits that Miller (1968) and later Nielsen described put roughly 0.1 s at the edge of feeling instant, 1 s at the edge of keeping the flow of thought, and 10 s at the edge of keeping attention. Real tolerance depends on the action, so a keystroke echo and a report export need different limits.
What are the Apdex tolerating and frustrated zones?
With a threshold T, Apdex counts responses up to T as satisfied, responses from T up to 4T as tolerating, and anything slower as frustrated. Tolerating responses count for half in the score. You choose T per request class.
How do you test the latency tolerance of a service?
Set pass or fail criteria from the tolerance of the caller, then slow one dependency at a time while the load runs. If a mock or virtual service supports a latency multiplier, raise it step by step and note where the caller breaches its criteria or starts to time out and retry.
Is average latency a good tolerance metric?
No. Users and callers react to the slow requests they hit, not to the mean. Use p95 or p99 and the share of requests past the tolerance limit.