Describe the work your service receives
Define the work being counted and be consistent about units. A quick read, a cache miss and a report export can put different demands on the same service. Group the operations by the resources they use. If you expect the request mix to change, record that assumption explicitly and test the heavier mix. Including retries in the load matters when dependencies slow down.
Separate offered requests from successful completions. A system that rejects a growing share of traffic may appear to maintain steady throughput. Compare error rate and latency with input rate and watch queue depth, downstream connections and any resources expected to saturate first.
Find the first point where work backs up
Use a controlled test environment and increase offered load across several steady stages. Use realistic data size, cache conditions and dependency limits. Give each stage time to settle. Write down the first stage where backlog grows without recovering, tail latency exceeds the chosen objective or errors exceed the tolerance. Confirm whether the bottleneck is in the application, a shared dependency or the load generator itself.
Take the last stage that met the objectives as a measured reference for that particular setup. Repeat around the boundary to understand variability. A short burst can hide a buildup that appears only after several minutes, and a cold cache can expose a limit invisible during a warm test. Keep the test duration and conditions alongside the result.
Convert that result into a planning estimate
The CSV gives a worked example for a synthetic order service. Each row has an expected peak, an explicit headroom percentage, a measured safe rate per replica and the number of replicas available after a modeled failure. For the normal-peak row, 480 requests per second with 25% headroom implies 600 requests per second of planned demand. At 90 measured requests per second per replica, round up to seven replicas. Eight available replicas pass that preliminary check.
The file stores values and expected results. To reproduce them in a spreadsheet, compute planned demand as peak_rps * (1 + headroom_percent / 100) and round the division by tested_safe_rps_per_replica up to a whole replica. Replace the sample inputs with measurements for your own workload. Multiplying a per-replica rate assumes scaling near that range. Shared connection pools and databases can break this assumption, so validate the full replica count under the same peak scenario.
Decide what happens if demand exceeds the plan
Test the modeled failure as well as the normal peak. If one group is unavailable, remaining replicas must handle both traffic and side effects such as retries or a colder cache. Check whether autoscaling can respond in time and whether downstream capacity is available when new replicas start.
Define a response in advance. Where the service semantics allow it, bound queues and reject low-priority work before it consumes resources needed by critical requests. If clients retry, exercise their retry limits and delays as part of the test. Record the load and duration tested, the bottleneck observed, the action owner and when the assumptions will be reviewed. Revisit the decision when the request mix, resource limits or dependency behavior change.