Edge Cache Hit Ratios and the Origin Load Teams Still Budget For

Oct 20, 2026 By Sara Park

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.

Recommend Posts
Tech

Package Registry Fees Overtake Maintainer Wages at Small Tooling Shops

By Yusuke Tanaka/Oct 20, 2026

Private package registries now bill monthly per seat while maintainer paychecks lag. A breakdown of what small tooling shops pay for, and what they trade away.
Tech

SPDX 3.0 and CycloneDX Diverge on License Field Semantics

By Yusuke Tanaka/Oct 20, 2026

SPDX 3.0 and CycloneDX model license data differently at the field level. Here is where the wire formats clash and how to keep SBOM tooling from losing license truth.
Tech

Passkeys and the Recovery Desk Workload Mobile Teams Inherit

By Yusuke Tanaka/Oct 20, 2026

Passkeys remove the password hash but move the hard part to recovery. What WebAuthn actually sends, why sync breaks across platforms, and how to staff the support desk.
Tech

Firmware Updates and Driver Signing Diverge Across Accelerator Vendors

By Lucas Mendes/Oct 20, 2026

Accelerator vendors split firmware and driver signing across two chains. A practical look at what each model gets right, where they diverge, and how to test rollback.
Tech

Open Source CI Runners Depend on a Handful of Maintainers

By Yusuke Tanaka/Oct 20, 2026

CI runners are the least visible layer of the build pipeline and often rest on one maintainer. A look at the wear, the bus factor, and funding models that fit.
Tech

Native Builds Return as Cross-Platform Stacks Age

By Sara Park/Oct 20, 2026

Cross-platform mobile stacks defer costs and concentrate maintenance on a few people. Here is what aging frameworks cost teams and why native builds are returning.
Tech

Inference Pricing Falls as Provider Batching Ratios Converge

By Lucas Mendes/Oct 20, 2026

Why LLM inference prices keep falling: continuous batching, PagedAttention and converging batch ratios at the wire level, plus what API consumers should measure.
Tech

How CDN Teams Triage Failures They Cannot Reproduce

By Yusuke Tanaka/Oct 20, 2026

Edge failures often vanish before logs flush. CDN teams use shadow probes, TLS alerts, and BGP data to triage problems they cannot reproduce.
Tech

Microservice Splits Raise Coordination Costs Before Throughput Gains Appear

By Sara Park/Oct 20, 2026

Splitting a monolith into microservices usually adds coordination cost before throughput gains arrive. Here is where the money actually goes, and how to budget for it.
Tech

Firmware Signing Keys Outlive the Engineers Who Hold Them

By Yusuke Tanaka/Oct 20, 2026

Firmware signing keys can outlast the engineers who created them. The costs, ceremonies, and succession planning that keep devices secure for decades.
Tech

How Mobile Teams Budget Time Against App Store Review Cycles

By Sara Park/Oct 20, 2026

A look at how mobile engineering teams treat App Store review latency as a planning dependency, from freeze dates and feature flags to rejection playbooks.
Tech

Inference Costs Drop While Serving Teams Grow Headcount

By Yusuke Tanaka/Oct 20, 2026

Per-token inference prices keep falling, yet serving teams keep hiring. A look at why cheap tokens create more operational work and what serving engineers actually do in 2026.
Tech

Accelerator Vendors Shift Driver Maintenance Onto Cloud Buyers

By Deepa Iyer/Oct 20, 2026

Cloud buyers now absorb the driver and firmware upkeep vendors once handled. Here is how the cost moves, where the bus factor bites, and what to check before signing.
Tech

Open Source Careers Built on Unpaid Triage Work

By Deepa Iyer/Oct 20, 2026

Triage work keeps open source projects alive but rarely shows up in hiring. What that unpaid second shift costs engineers, and how to make it legible to employers.
Tech

Microservice Teams Confront Rising Maintenance Load and Thin Staffing

By Sara Park/Oct 20, 2026

Microservice teams are absorbing rising maintenance load with thin staffing. A look at the pager rotations, upgrade churn, and bus factor risks that follow.
Tech

Maintainers of Core Backend Libraries Face Uneven Funding and Bus Factor

By Lucas Mendes/Oct 20, 2026

A maintainer-side look at the backend libraries everything depends on: uneven sponsorship, single-person bus factors, and what teams can do about transitive risk.
Tech

Open Source Maintainership as a Career Path and What It Costs

By Yusuke Tanaka/Oct 20, 2026

Open source maintainership is a career path with a hidden payroll. Here is what engineers gain, what they trade, and how to negotiate upstream time before burnout.
Tech

Edge Cache Hit Ratios and the Origin Load Teams Still Budget For

By Sara Park/Oct 20, 2026

Why edge hit ratios mislead, how cache misses cluster around deploys and purges, and how to size origin capacity for the tail you cannot see in the dashboard.
Tech

Browser Engine Forks Shift Maintenance Cost Onto Platform Teams

By Sara Park/Oct 20, 2026

Chromium forks move security patches and upstream rebases onto internal platform teams. Here is where the money and headcount actually go, and how to budget for it.
Tech

How Transit Contracts Set the Price of Edge Capacity

By Sara Park/Oct 20, 2026

Edge capacity prices are set by transit contracts and peering ratios, not hardware scarcity. A breakdown of committed rates, ratio penalties, and renewal clauses.