Hypothetical scenario. Northwind has defined which catalogue responses count as usable. Dev returns to the purchasing question: how many workers should the promotion receive? Maya repeats the planning input from the brief—100 visits in a minute, with three reads per visit. Priya points to the first ten seconds of the campaign, when half those visits may arrive.
Dev: “Could we divide the minute’s work evenly and size from that?”
Priya: “Only if the visitor arrivals are actually that even.”
Maya: “Keep the same visitors. Show me how their timing changes the requirement.”
The task is to build one workload ledger from visits to logical reads, interval rates and payload. Any later worker count is conditional on a matching capacity assumption. All quantities in this exercise are selected planning inputs or visible derivations, not measurements of a deployed Northwind service.
Which action does each number count?
A visit is not a request, and a request is not necessarily a database operation. Northwind assumes three catalogue reads per visit, so the minute contains 100 × 3 = 300 reads. That multiplication depends on the chosen behavior. A different interface could make a different number of requests for the same visitor.
Record what is excluded. The scope does not include order submission or payment, and this first ledger ignores retries, background refresh and HTTP overhead. Exclusions keep the calculation interpretable; they are not evidence that those costs vanish. Before sizing an actual deployment, identify where each excluded activity would enter the resource model.
Put a window beside every rate
One minute contains 60 seconds. The average catalogue rate is 300 ÷ 60 = 5 reads per second. The first ten seconds contain 50 × 3 = 150 reads, giving 150 ÷ 10 = 15 reads per second over that interval. The remaining fifty visits produce another 150 reads over fifty seconds, or 3 reads per second.
The pieces reconcile: 150 + 150 = 300. Their durations also reconcile: 10 + 50 = 60 seconds. Calling five the peak would silently discard the assumed arrival pattern. Calling fifteen an instantaneous upper bound would make another unsupported claim: the first ten seconds could contain a shorter, sharper burst.
Before choosing machines, ask which interval the service must absorb without violating the accepted response deadline. A queue may hold work, but waiting in that queue still consumes the visitor’s budget. Later overload lessons will examine admission and waiting policies; this estimate supplies the demand those policies must confront.
Translate reads into payload without inventing storage
Choose a response payload of 2,000 bytes per catalogue read. The minute transfers 300 × 2,000 = 600,000 payload bytes. The average payload rate is 600,000 ÷ 60 = 10,000 bytes per second. With eight bits per byte, this is 80,000 bits per second.
During the selected busy interval, payload rate is 15 × 2,000 = 30,000 bytes per second, or 240,000 bits per second. These values exclude headers, encryption framing, requests, retransmission and other traffic. They also say nothing about how many copies of a product record are retained.
Reading the same description three hundred times does not create three hundred new stored descriptions. Storage growth needs a write and retention model. Keep transfer, retained data and computation in separate ledger columns instead of treating bytes as interchangeable simply because the units look familiar.
Translate one request into separate resource demands
| Ledger | Derivation | Meaning / exclusion |
|---|---|---|
| Logical catalogue reads | 100 visits × 3 = 300 | Not an observed database query count |
| Response payload | 300 × 2,000 = 600,000 bytes | Excludes protocol overhead and repeated attempts |
| Product-edit writes in this brief | No edit operation is admitted | Does not exclude telemetry or maintenance elsewhere |
| Retained product growth | Requires write/version/retention inputs | Cannot be inferred from repeated read bytes |
Hypothetical resource assumption. Now suppose each read holds a product-service connection for a mean 40 ms, or 0.04 seconds. For a stable workload over a suitable observation window, request rate multiplied by mean residence time gives mean occupancy: 5 × 0.04 = 0.20 held connections for the minute-rate model, 15 × 0.04 = 0.60 for a sustained busy-rate model, and 30 × 0.04 = 1.20 for the stress-rate model. These are distinct modeled regimes, not a claim that a ten-second burst is already steady state.
Connection-seconds per second reduce to mean held connections. That average is neither a pool-size recommendation nor a bound on simultaneous work. Variation, retries and queueing can require more occupancy. This connection assumption also does not replace the separate worker-throughput assumption below: they describe different resources. A database pool, application worker and network link can impose different limits on the same request.
Capacity needs an observation under matching conditions
To turn demand into a candidate machine count, suppose a future test establishes that one selected worker sustains twenty catalogue reads per second while meeting the chosen quality conditions. Twenty is an assumed test result for the calculation, not a benchmark reported by this course.
For fifteen reads per second, the arithmetic lower bound is ceil(15 ÷ 20) = 1 worker. That result assumes the same request mix and resource allocation, adequate dependencies, and usable distribution of work. It does not establish that one worker provides an acceptable failure policy or that its behavior at finer burst intervals is adequate.
If the stated requirement is to retain this capacity after losing one worker, two such workers leave one survivor: (2 − 1) × 20 = 20 reads per second, exceeding the assumed fifteen-read demand. This is a capacity condition under selected assumptions, not a general availability calculation. Shared storage or a common network path can still fail.
Change one assumption and follow its consequences
Now choose a stress case with twice the busy-interval demand: 2 × 15 = 30 reads per second. Two workers provide a nominal 2 × 20 = 40 reads per second, but losing one leaves twenty, which is below thirty. Three workers leave two survivors, providing (3 − 1) × 20 = 40 under the same assumptions.
That third worker follows from the changed demand and single-worker-loss condition. It does not follow from a universal instruction to multiply every estimate by two. Keep the original workload and the stress case distinct, and later replace assumptions with observations that are appropriate to the product’s actual use.
Likewise, doubling payload size doubles the derived payload rate without proving that database work doubles. Adding a wide query may increase processing while response size barely changes. A useful estimate names which dimension changed and which observations remain missing.
Choose against survivor capacity, not a nominal total
For the declared stress case, the three-worker proposal protects the selected single-worker-loss envelope only if the surviving workers, source service and network can actually supply that capacity together. An alternative is to admit fewer requests or expose an agreed degraded outcome. Those alternatives change the service delivered, so the product owner must participate in the choice.
Keep one test ledger containing offered work, admitted work, useful completion, queue age and the limiting dependency. Reconsider the allocation when the workload mix or matching capacity evidence changes. This is how a calculation becomes a decision somebody can update, rather than a server count detached from its assumptions.
A backlog spends the deadline
As a separate stress calculation, assume only one twenty-read-per-second worker is available while thirty reads per second arrive for ten seconds. Ignore all scheduling and service-time variation in this fluid approximation. Backlog grows by (30 − 20) × 10 = 100 reads.
When arrivals return to three per second, the assumed spare processing rate is 20 − 3 = 17 reads per second. Clearing that backlog takes 100 ÷ 17 ≈ 5.88 seconds under the simplified model. This is a drain-time calculation, not each visitor’s exact waiting time. It is enough to challenge a proposal that a long queue automatically preserves a short response deadline.
In the wild: admit work the system can finish
AWS’s load-shedding design account discusses protecting useful service when offered work exceeds what can be processed. Read it as a first-party account of overload mechanisms, not as a measurement of Northwind or a promise that adding a queue creates capacity.
The planning connection is straightforward: resource estimates and acceptance criteria belong together. A system can accept more work into memory while completing fewer requests within their deadlines. Count useful completion and waiting, not merely the number of requests admitted.
When the average shapes the wrong fleet
Hypothetical failure scenario. Northwind provisions from the five-read average and tests only evenly spaced arrivals. The promotion sends its chosen fifty visits in the first ten seconds. The service queues work, and responses miss the client deadline even though the total minute still contains exactly the expected 300 reads.
The mistake was not the multiplication. The test omitted the arrival pattern that made the decision consequential. Reproduce the declared workload shape, inspect the bottleneck and revisit the proposed capacity. Do not replace the failed assumption with an invented story about a particular cloud instance.
Know which decision the estimate supports
Use this ledger to compare workload scenarios and identify the next measurement. Do not present its selected worker capacity as a purchasing recommendation. Real behavior depends on request costs, dependencies, resource limits, placement and the response criterion.
An estimate also needs a revision trigger: a changed request pattern, payload or dependency can invalidate the old result. Keep measured values, selected assumptions and derived quantities visibly different so another person can update the calculation without guessing where its numbers came from.
Check the ledger
The minute averages five reads per second. Can a ten-read-per-second service be accepted from that fact alone?
Carry the busy interval into the test
No. The selected first interval averages fifteen. Test the actual chosen shape and response conditions; a minute average does not establish acceptable burst behavior.
At thirty reads per second, do two twenty-read workers retain capacity after one fails?
Subtract the failed capacity before comparing
No. One survivor provides twenty, below thirty. Three workers would leave forty after one loss under the example’s independent-worker and matching-capacity assumptions.
Does 600,000 bytes transferred mean 600,000 new bytes stored?
Separate reading from retention
No. The same objects can be read repeatedly. Retained growth needs its own write, version and deletion assumptions; network payload is a different quantity.
The workload now describes arrivals and conditional worker capacity. Page 05 follows one of those logical reads through the browser and network. Keep the 400 ms observation boundary from page 03: a fast worker is only one contributor to that experience.
Northwind decision log
Carry five average and fifteen busy-interval catalogue reads per second as separate quantities.
Budget payload separately from storage and processing.
Choose worker counts only against matching capacity evidence and a declared failure condition.
Go deeper: measure before extrapolating
- Book chapter: Real-World SRE, chapter 2: Monitoring — Nat Welch. Connect a capacity decision to observations; the linked book contents identify the chapter.
- Book chapter: The same book, chapter 6: Capacity Planning — Nat Welch. Organize current capacity, growth and the next change.
- Video lecture: LISA ’12 — Performance Analysis Methodology — Brendan Gregg, USENIX. Examine how an investigation chooses measurements.
- Primary document: Using load shedding to avoid overload — AWS Builders’ Library. Relate offered work to useful completion.