The request chart looks comfortably familiar: 200 calls a second, just like yesterday. The service is falling behind anyway.
Today, half those calls ask for much more work. A request counter gives every arrival one vote. The processor is less democratic.
Measuring the work explains how the overload arose. Running a shared service requires another decision: which work receives scarce capacity, who absorbs rejection and how the system notices that capacity has become available again. An allocation policy is a set of customer promises expressed through engineering.
One count can hide two workloads
Consider a fictional backend with 1,000 CPU milliseconds available in a one-second accounting interval. Yesterday, 200 requests each required 1 CPU millisecond, using 200 in total.
Today, customer A sends 100 requests at 1 CPU millisecond each. Customer B sends 100 at 10 CPU milliseconds each. Demand is still 200 requests, but the requested work is 100 × 1 + 100 × 10 = 1,100 CPU milliseconds.
The accounting includes the modeled processing cost of accepted requests. It does not establish a waiting time, burst tolerance or a memory budget. Those would require additional assumptions. Even within this small example, however, a request-count limit that seemed generous yesterday can admit more work than the backend can perform today.
Google’s historical SRE chapter on overload, written by Alejandro Forero Cuervo and edited by Sarah Chavis, describes resource-based customer quotas, the cost of rejecting traffic and the information tradeoff in client-side throttling. It also distinguishes task-local protection from broader load distribution. Those ideas motivate the allocation questions here; the customers, budgets and calculations form an original fictional case.
Equal limits can make unequal promises
Suppose both customers are allowed 100 requests per second. They receive equal-looking limits, but B can claim ten times A’s modeled CPU work. If the commercial promise was equal access to a count of operations, that may be intentional. It is not equal access to the constrained resource.
Now give each customer a fixed allocation of 500 CPU milliseconds. A needs only 100, while B can complete 50 requests using its 500. The backend performs 600 CPU milliseconds of work and leaves 400 unused even though B has unserved demand.
A work-conserving policy could let B borrow the capacity A is not using. With A consuming 100, B could use the remaining 900 to complete 90 requests. That serves 190 requests in total, before adding any separate cost of rejection.
The higher completion count is useful, but it does not settle fairness. B might have paid for a guaranteed allocation; A might need to increase its use suddenly. Borrowed capacity needs a rule for returning it. Otherwise yesterday’s convenient spare resource becomes tomorrow’s disputed entitlement.
Consider a different contract: A is assured up to 200 CPU milliseconds and B up to 800. If unused allocations cannot be borrowed, the current workload completes A’s 100 requests and B’s 80, using 900 CPU milliseconds. Borrowing A’s spare 100 can admit ten additional B requests, with the understanding that A can reclaim its reservation when needed.
Those policies make different promises. None is justified merely by calling it fair. The provider should be able to state who may use spare capacity, whose minimum is protected and what happens when several customers exercise their full claims together.
The cost of saying no
The 190-request calculation spends the entire 1,000 CPU-millisecond budget on accepted work. It leaves no room to turn the remaining ten B requests away.
Add an explicitly supplied backend rejection cost of 0.2 CPU milliseconds per attempt. Accepting 100 A requests and 90 B requests now consumes 100 + 900 + 10 × 0.2 = 1,002. The tidy admission plan has overspent its budget by the cost of announcing that it cannot spend more.
Accept 89 B requests instead. Accepted work consumes 990, and rejecting eleven B attempts costs 2.2, for a total of 992.2 CPU milliseconds. In this stipulated integer-count interval, admitting a ninetieth B request would exceed the budget.
This is why rejection placement belongs in the capacity design. If a request can be refused before it reaches the backend, the backend may avoid that attempt’s processing cost. The client or admission layer still does work, and its control path needs capacity of its own. Moving the decision changes where the expense occurs.
The provider also has to decide what an unsuccessful attempt means commercially. A caller may see a quick, clear refusal, a late timeout or a misleading success that produces incomplete work. Those outcomes can have very different consequences even if the backend’s CPU chart looks similar.
A smaller answer is a different product
Instead of rejecting some B requests, suppose the fictional product can deliver a reduced version of twenty of them at 5 CPU milliseconds each. The other eighty still cost 10. Together with A’s work, the total becomes 100 + 80 × 10 + 20 × 5 = 1,000.
All 200 requests now receive a response within the supplied work budget. Twenty receive a different response. Whether that is an improvement depends on what those callers need and what the provider has promised.
A reduced preview might be acceptable for browsing. It could be unacceptable if a customer relies on a complete export for a required reconciliation. The distinction has to be part of the product’s semantics, not something inferred from a successful status code.
A useful allocation design can therefore include more than an accept-or-reject decision. It may choose among full work, a clearly identified reduced service, later work or an explicit refusal. Each option needs a defined outcome and a cost. An inexpensive response that causes expensive repair downstream can be a poor bargain.
The provider therefore has to say whose output it is willing to change before deciding how many requests it can serve. A response count alone leaves that business choice hidden.
Urgency needs an owner
Suppose A has an urgent need for more work just as B begins using its protected allocation. A priority label cannot create the missing capacity. The provider must preserve the existing promise, renegotiate it or knowingly displace some work.
Letting every caller declare itself essential is unlikely to make the choice easier. A useful priority system needs a trusted assignment policy and a connection to the customer consequence it represents. Otherwise it becomes an extra field for everyone to set to the most persuasive value.
Urgency and latency are also different dimensions. A result may be useful only if it arrives quickly but harmless to omit. Another may tolerate a delay but be essential to complete. An admission policy that looks only at the desired response time can miss that difference.
The promise must survive the service’s internal boundaries. If a high-priority operation calls a dependency that treats it as ordinary background work, the top-level label has not accomplished much. Conversely, promoting every internal request can consume capacity intended for genuinely consequential work.
For the fictional provider, the design discussion should name one job that can be reduced, one that can wait and one whose failure has a serious consequence. Then it should identify who is allowed to make those classifications and how they interact with the customer’s allocation. That is a policy decision with resource consequences.
Recovery needs information too
Refusing work close to the caller can protect the backend, but it changes what the caller observes. If every request is stopped locally, a previously overloaded backend can become available without producing a new response that the client can see.
A recovery design needs some way to learn about that change. It might rely on controlled attempts, an independent signal or another explicitly supported feedback mechanism. The observation path also consumes resources and may be delayed or incomplete.
The historical SRE account makes this information-versus-rejection-cost tradeoff explicit. It does not make any one threshold suitable for another service. The right question for the fictional provider is how much information it needs to reopen admission safely, where that information comes from and what work is spent obtaining it.
Retries introduce another distinction. A rejection from one unusually busy task does not necessarily mean every task lacks capacity. Broad overload makes a different situation from a local imbalance. A policy that ignores the difference can either give up useful work or send extra attempts into a system with nowhere to put them.
Following an attempt across multiple layers matters as well. Several layers can each believe they are making a modest retry while jointly multiplying the work. The allocation should account for attempts generated by the service path, not only requests originating from the customer.
Make the resource promise readable
CPU milliseconds were chosen to make this example explicit. A real service can be constrained by memory, connection handling, another dependency or several resources together. An average work estimate also leaves out bursts and the distribution of individual costs.
The provider can still make a more useful decision than choosing a reassuring request-count ceiling. It can state the constrained resource, identify the customer claims on it, account for admission and refusal, and describe what happens to outputs during overload.
Take one representative customer operation through that description. Which resource does it consume? What allocation does it use? What alternative response would remain useful? Who pays for an unsuccessful attempt, and how will the caller learn that normal service has returned?
The answers make the policy assessable by the people who depend on it. They also explain why an unchanged request chart can accompany a very different day: the service is carrying different work, under promises that a count alone cannot express.
Explore Infinite Upside
For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.
Examine how a circuit breaker protects a dependency
What Does a Software Circuit Breaker Actually Do?