Edge Cache Hit Ratios and the Origin Load Teams Still Budget For
Edge hit ratios are the most quoted number in a CDN deployment and one of the least useful on their own. A ratio tells you what fraction of requests were served from cache. It says nothing about which requests missed, when they missed, or what those misses cost at the origin. Teams that treat the ratio as a health metric end up budgeting origin capacity for a workload they have never actually measured.
The Hit Ratio Mirage
An average hit ratio is a lossy summary. A service serving 95 percent of requests from edge can still push a punishing volume of misses upstream if the remaining five percent land on expensive objects. The ratio weights every request equally; the origin does not. A single uncached API response that triggers three database queries costs more than a thousand cached image bytes.
Dashboards tend to show the aggregate because that is what the CDN reports by default. Teams then size origin fleets against the miss rate implied by that aggregate, which usually assumes misses spread evenly across time. They do not. The real distribution has a long tail of bursty, correlated misses that arrive exactly when the origin is least able to absorb them.
Cache hit is also not the same as cache useful. An object served from edge that was written to cache seconds earlier, after a full origin fetch, still cost a round trip. High ratios can mask a churn problem where objects expire faster than they are reused, so the edge keeps refilling the same keys and calling it a hit.
The weighting problem shows up most sharply when you compare request count to bytes. A ratio computed per request flatters workloads dominated by small objects, because a page with forty thumbnails and one HTML document counts forty-one times. Compute the same ratio per byte and the picture inverts: the document, the API call, and the JSON payload are where the origin's CPU time actually goes. Neither number is wrong. The mistake is picking one and treating it as the whole story, which is what most default dashboards encourage.
Why Misses Cluster at the Worst Time
Misses correlate with events, not with steady traffic. The clearest example is a deploy. A new release changes asset hashes, invalidates HTML, and often ships with a purge call. All three happen within the same few minutes, so the edge empties a working set and the origin sees a fill storm just as engineers are watching error rates.
Expiry alignment makes it worse. Objects written during a previous traffic peak share a TTL, so they expire together during the next peak. Long-tail objects dominate origin egress in these windows because they were cached with short lifetimes and low reuse. A video segment or a large JSON payload fetched once per hour still has to be fetched from origin every time it expires.
Regional failover multiplies the effect. When a POP or a region is taken out of rotation, its traffic redistributes to neighbours that hold a different cache population. Miss volume can roughly double for the duration, and the origin sees a step change that no capacity plan anticipated. Purges compound it: a purge issued during a deploy lands on a cache that is already cold.
There is a quieter version of the same pattern that never involves an incident. A marketing send, a mobile app release that prompts a background refresh, or a scheduled batch job that warms a reporting page all pull the same objects at the same minute. If those objects carry a shared TTL, the cache evicts them in unison and the origin absorbs a spike that looks random on a per-minute graph but is perfectly periodic on a weekly one. Plotting miss rate over seven days rather than one hour is usually enough to surface it.
What CDN Vendors Report and Omit
Edge hit ratios vary enormously by workload class, which is why cross-service comparisons mislead. Static assets with content-hashed filenames sit at the high end almost by construction. API responses and personalised fragments sit far lower, and no amount of tuning closes the gap, because the cache key includes something user-specific.
Per-POP metrics rarely reconcile to a global figure. Each POP counts its own hits and misses, and requests that get routed between POPs or handed off through CDN interconnection are counted twice or not at all. A CDNI handoff in particular can reset local counters, so the receiving network reports a miss that the sending network already paid for.
Vendors report what their edge observes. They cannot see what your origin actually spent, and they have no incentive to model it. The gap between edge-reported miss rate and origin-observed request rate is where budget surprises live, and it is usually a few percent wide, which is enough to matter at scale.
Read the vendor's definition before you trust the number. Some products count a revalidated 304 as a hit, some count it as a miss, and some exclude it from the denominator entirely. Two providers can report wildly different ratios for identical traffic and both be internally consistent. When a migration moves you between definitions, the ratio jumps and nothing about your workload changed.
Origin Shield as a Budget Line
Tiered caching absorbs repeat misses by inserting a mid-tier layer between edge and origin. A shield POP aggregates requests from many edge locations, so the second and third edge that miss on the same key hit the shield instead of the origin. For a workload with any regional correlation, the reduction in origin requests is substantial.
Shield capacity is finite. It is a cache with its own storage and its own eviction policy, and teams that treat it as infinitely elastic discover otherwise during a purge storm. If the shield's working set exceeds its capacity, it evicts the same objects the edge just asked for, and the tiering stops helping.
Request collapsing is the mechanism that prevents stampedes. When many edges request the same uncached key at once, the shield or edge holds the first request and queues the rest behind it. Stale-while-revalidate buys further breathing room by serving an expired object while a background fetch refreshes it. Both depend on correct configuration; a misconfigured collapse window turns a thundering herd into a slow one.
The trade-off is latency against origin relief. Collapsing adds queueing delay to every request that waits behind the leader, and on a slow origin that delay can exceed the client's timeout. A collapse window tuned for a 200 ms object will time out clients on a two-second one. Set the window per object class, or accept that a few large objects will bypass collapsing and hit the origin directly. That is a legitimate choice, but it belongs in the capacity model rather than in a config file nobody revisits.
Sizing for the Miss You Cannot See
Model origin load from tail percentiles, not averages. The p99 miss rate over a rolling window is a better capacity input than the mean, because the origin has to survive the worst minute, not the typical one. Plot miss rate against deploy events and purge calls and the correlation usually becomes obvious.
Replay production purge events in staging. A recorded sequence of purges and deploys, replayed against a staging origin with production-like cache state, exposes fill storms that no synthetic load test reproduces. This is the same discipline this site has argued for in serving cost modelling: measure the workload you actually run.
Track miss cost per object class, separating cold-start from steady-state. A cold cache after a deploy behaves differently from a warm cache with a steady trickle of long-tail misses, and the two need different autoscaling responses. Conflating them hides the fact that cold-start load is bursty and short while steady-state load is flat and predictable.
Give the origin a way to shed the wrong work. When a fill storm arrives, the requests that matter are the ones users are waiting on, and the requests that can wait are the background refreshes and crawler fetches. A priority signal on the cache-fill path, even something as crude as a header the origin can read, lets you serve the first group and queue the second. Without it, the origin treats a bot re-fetching a sitemap with the same urgency as a checkout page.
What to Change This Quarter
Instrument miss reasons, not just counts. Tag each origin request with why it missed: expired, purged, never cached, or collapsed. A single header or log field makes the difference visible.
Set origin autoscaling on cache-fill rate rather than request rate. Fill rate rises before request rate does during a purge storm, so it gives the fleet a head start.
Cap purge blast radius per deploy. Purge by tag or by prefix instead of by hostname, and stagger the purge after the deploy finishes rather than alongside it.
Review shield headroom before peak season. Check working-set size against shield capacity and add margin for the failover case where a region's traffic lands on one tier.
Reconcile edge logs against origin logs weekly. The difference between edge-reported misses and origin-observed requests is your unmodelled load, and it is the number your budget should track. The same reconciliation habit shows up in maintaining core infrastructure where hidden costs accumulate quietly.