Cloudflare CDN 00:00:01 The same album cover in two cities A fan in Paris asks for an album cover. The local Cloudflare edge has no fresh copy. This example enables tiered caching, so the request can check an upper-tier cache before reaching the record label's origin. Anycast brings the visitor to the Paris data centre. It has no copy. Paris asks the upper tier, which has no copy either. The upper tier fetches the file. Other requests for it wait on the cache lock. Eligible tiers cache the response under the applicable cache key and freshness rules. Tokyo misses, but the upper tier already has the file. The origin hears nothing. When Tokyo subsequently asks, which machine actually supplies the bytes? Track local edge hits and upper-tier hits separately to see how much traffic the origin avoided. 00:00:48 A city loses its route The published hostname can resolve to an anycast address announced from multiple sites. Internet routing determines which reachable location receives a particular connection. Paris and Tokyo announce the same address. Each visitor follows the best route. Paris stops announcing. New packets can no longer arrive there. The alternative route in this two-site illustration leads to Tokyo. Real route selection depends on network topology and routing policy. The name still resolves to the same address. Open connections may have to reconnect. Existing connections may reconnect as paths change. A visitor moving to a different site also experiences that site's cache state. Reachability and cache warmth have different recovery curves. 00:01:31 An edge purge leaves a fan's browser untouched The label corrects the cover art. The origin now holds version two under a familiar name. Both a browser and the CDN may still hold a fresh version one. The browser and the edge both hold version 1. The origin now has version 2. Nobody downstream knows. The operator purges the CDN object. Propagation of the edge invalidation and the local browser's cache are separate mechanisms. This browser still uses version 1 and does not even ask. The new page asks for a new file name. Both caches miss and fetch version 2. Publish a versioned asset name and have the updated page reference it. Define an independent freshness policy for that page, since a browser still holding the old page may still request its old image. 00:02:16 The label's origin is unavailable A regional origin goes offline during the launch. Which files can the edge still deliver, and which customer operations require the unavailable service? Cached files are hits; pages come from the origin. Fresh eligible copies can still be served. A miss that cannot obtain a valid origin response may fail. Where rules allow it, expired copies are served as STALE. When the origin returns, the lock and the upper tier keep the first wave of misses small. A stale response must satisfy the site's configured rules and business freshness budget. Track how many requests have no eligible cached representation, then ramp refill traffic as the origin comes back. 00:02:56 A flag is a different kind of cached data An optional edge Worker uses Workers KV to read a rollout flag. The album cover and this flag may be cached through different mechanisms with different consistency contracts. Both cities read the flag as off, and Tokyo has it in its local cache. An editor turns the flag on through the Paris Worker. Tokyo still answers from its cached value. After the earlier cached value expires and the updated value is available, the second site reads the new flag. A setting that must change everywhere atomically needs a stronger coordination design. Choose the storage model from the consequence of a stale read, as you did with the cover's freshness.