Inside a CDN 00:00:01 Pull a Tokyo photo on its first request A travel gallery has thousands of photographs, and only a few get opened in each city. Follow a visitor to an edge that has never stocked this particular image. The browser needs the address of the CDN name. The answer is the Tokyo edge. The request arrives. The edge looks in its cache. No copy, so the edge asks the origin. The origin sends 2.5 MB. The edge keeps it for 24 hours. This user waited for the long trip. The next one gets a hit. Pull caching naturally concentrates storage on requested objects. The first visitor to each cold edge may pay the additional fetch, so monitor misses alongside popular-object latency. 00:00:44 Stock the premiere before the audience arrives A video premiere has a predictable opening time and three intended edge sites. Move copies before anyone presses play and count the resulting storage across those sites. The origin sends the files once. Copies travel to the edges, one after another or in parallel. All three report that they are ready. 450 MB are stored at the edges. A user in London presses play. The first request is already a hit. The origin is not contacted. Push exchanges deployment work and storage for a predictable first request. Verify readiness and maintain a rollback path before telling the audience that the release is live. 00:01:23 How a resolver in Miami changes a Lima answer The CDN tries to send a visitor in Lima to a nearby edge by answering a DNS question. Identify whose location the authoritative service can actually observe. The user in Lima asks a resolver nearby. The CDN's DNS sees where the resolver is. It returns the Lima edge. Good. If the resolver stands in Miami and passes nothing on, the answer is Miami. The Lima edge fails. Users keep its address until the TTL of 60 seconds ends. Resolver location may differ from client location, and cached answers can outlive a routing decision. Health, capacity and privacy constraints also influence the choice. 00:02:01 Several places announce one address Give three edges the same anycast address. A Paris request reaches Frankfurt under the current routing policy. Predict what the client must change if Frankfurt withdraws that route. All three edges announce 192.0.2.1. Routers lead the packets of the user in Paris to Frankfurt. It withdraws its route. Open connections break. Packets now reach London. The address stayed the same. The destination address can stay the same while the network path changes. Existing connection state may require a retry after a route change even when new connections succeed. 00:02:37 Collapse three identical cold misses Three edges need the same uncached object together. Add an intermediate shield and trace their requests until a single fetch reaches the origin. Three misses become three requests. With 200 edges it would be 200. The three edges ask the shield. One request goes on, the others wait. The answer is kept and given to all three. Coalescing applies only to compatible cache keys and simultaneous in-flight work. The shield also needs capacity and a failure plan because many edge misses may converge there.