Debug Foundry

Send the bytes across the world once. Then serve them from next door.

Turn it, pause it, drag through the steps. Then try a different day at the edges.

Not a video. A small simulation of a CDN: regional edge caches that miss once to the origin, then answer nearby.

Drag to turn · scroll or pinch to zoom

Finished state of the CDN simulation: an origin on the left, two regions each with an edge cache answering their clients

Origin
every request

1/8First step sentence

    0.0s
    Replay the ending with

    What it's for

    Good to know

    Your request doesn't simply go to the geographically nearest edge: the provider steers you with its own routing (DNS or anycast), and "nearby" doesn't guarantee lowest latency — network paths aren't straight lines. Each edge is an independent cache keyed on the URL (plus query strings and selected headers, depending on rules), so region B's first ask misses even after region A is warm; many providers add a shield layer so one region's miss doesn't become a storm of origin fetches, which isn't shown. Freshness is governed by cache-control and TTLs, and a purge or invalidation is not instantaneous worldwide — this toy's policy is a TTL plus a purge that arrives after a delay. A CDN caches responses at the edge; it is not database replication and not a copy of your application. Misses still pay the full trip plus the fill, TLS setup, payload size and connection reuse change real numbers, and a CDN does not make every site universally faster, safer or cheaper.

    How it works, step by step

      Why the steps go in this order

      Before you rely on it

      This is a toy: one origin, two regions, one hot public answer, hand-set timings ("~180 ms" far, "~15 ms" near are illustrative, not measurements, and shorter distance is not guaranteed lower latency). "9 of 10 at the edges" is this toy's hit rate over its declared requests — real rates depend on content eligibility, TTLs, traffic shape and cache size. The tray's geography is a teaching layout, not a map of anyone's network; the cited providers run hundreds of locations with their own routing and measured numbers.

      References