What can the site still serve?

Change the cache hit rate or take a server offline to see how many requests reach the backend.

Set the workload
Healthy backend capacity
2,700

requests per second

Healthy servers
3
Cache hits per second
0
Requests reaching the backend per second
2,000
Requests served per second
2,000
Shortfall per second
0

The site can serve all incoming requests.

Predict before you test

Start with a 0% cache hit rate, 2,000 incoming requests per second and three servers at 900 each. How many requests per second are left over if one server fails? What happens if the shortfall lasts?

Reveal the worked example

Two surviving servers can handle 1,800 requests per second, leaving a shortfall of 200. A queue can absorb a brief spike if it has time to drain. For sustained overload, add capacity or reject enough low-priority traffic.

With one server down, raise the hit rate to 70%. Predict how much traffic reaches the backend, then switch on a cache outage.

Reveal the cache calculation

The cache serves 1,400 of the 2,000 requests each second. The remaining 600 fit within the backend capacity of 1,800. During a cache outage all 2,000 reach the backend, leaving 200 requests per second unserved.

Return to the caching lesson

The model assumes all requests are eligible for caching, cache hits consume no backend capacity, and cache misses make one backend request each. It also assumes equally capable servers, evenly distributed traffic, and a load balancer that has already detected the failures. It counts requests rather than estimating latency.

Return to the load balancing lesson

Try the DNS cache lab