Lesson 4 of 6

Cache popular guides

In the load balancing lesson, two surviving servers can handle 1,800 requests per second, while users send 2,000. Trail Notes adds a cache in front of those servers for public guide pages. Assume all incoming requests are eligible for caching, a cache hit never reaches a backend, and the origin can sustain the same rate for cache misses.

Predict. With a 70% hit rate, how many requests per second go to the backends? What happens if the cache stops answering and the site sends every request through?

Reveal the answer

The cache handles 1,400 requests per second, and the backends see 600. If all traffic bypasses the cache, the backends see 2,000 again and the 200-request-per-second shortfall returns. Plan for cold caches and cache failures. For example, limit concurrent work sent to the origin and decide whether an older cached guide is acceptable during an outage.

Test a cache outage in the traffic simulator