Quick summary · Chapter 4
The Simplest Practice
The essential ideas, decisions, and diagrams from this chapter. Follow the section links for the examples, calculations, and fuller argument.
The main idea
If someone asked me to start a capacity and cost practice, I’d find a decision the company has to make soon and stay with it until we know what happened. Trying to design the process for the whole company first is a good way to spend months learning what the organization chart says.
Suppose a service is about to grow. Engineering can tell you what it runs today, Product has an idea of how many customers will use the new feature, and Finance wants to know how much it’ll cost. Get them together and you may discover that Product’s estimate depends on the launch date, the launch depends on when the workers arrive, and the workers haven’t been ordered. Now you have something worth working on.
A portfolio small enough to follow
In the constructed case, the operators have tested the configurations on the same request mix. Each worker completes 250 requests per second, with ninety-fifth-percentile (p95) latency at or below 200 milliseconds and errors no greater than 0.1 percent of offered requests. On a real service, I’d want to see the test and ask which change in the configuration, request mix, or downstream behavior would send us back to run it again.
The service has 64 workers arranged in four independent failure groups of 16, providing a tested 16,000 requests per second when everything is available. The business has also agreed that the service must continue after losing any one group. That requirement changes the capacity we can promise:
I’d plan around twelve thousand. Once a group fails, the other three have to carry the work. If the service also owes customers recovery from a regional failure, we need a separate test for that.
Borrowed capacity comes with a return date
Make the decision legible
For this proposal to proceed, five of the people in Chapter 3’s authority map have to commit to something:
| Who | Commitment | Needed before |
|---|---|---|
| Product lead | Stage the rollout at the estimated 2,000 additional requests/s, and keep the ability to stop expansion | the rollout |
| Batch owner | Accept a bounded delay with a catch-up plan | the transfer |
| Web operations lead | Qualify the transferred workers, including their behavior when a group fails | the rollout |
| Budget owner | Authorize the $640-a-day purchase within a delegated limit, contingent on supply and the actual terms | the purchase |
| Responsible business executive | Accept the remaining exposure, or change the launch scope or date | the rollout |
If the batch owner refuses the delay, the loan is off. If Product refuses staging, even the borrowed workers leave the service 500 requests per second short of the full launch after a group fails. I’d ask Operations what customers would see under that load before asking the executive to authorize a different service promise.
The first sign of trouble might be demand ahead of the estimate or a test showing that batch can’t catch up. It might be the supplier calling with a new date. Agree who should hear that news while they can still change the rollout or find another place for the work to run.