Introduction to a CDN 00:00:01 A photograph crosses an ocean A gallery visitor opens a small photograph served by a distant origin. Mark the DNS lookup, connection setup, request and response before assuming the transfer of image bytes caused most of the delay. A picture is needed. Nothing is known yet. The name becomes the address of the origin. 20 ms. One full round trip across the ocean. TLS 1.3 needs one more round trip. The request arrives after half a trip and the origin works for 30 ms. Half a trip back. 650 ms in total, for a small file. The pictured timings describe this connection setup and network path. Reused connections, different transport protocols or a larger response change the accounting. 00:00:47 The Sydney edge has an empty shelf Route the next visitor to a nearby edge. That edge has never seen this image, but it already has an open connection to the origin. Which waits can it now avoid? The name leads to the Sydney edge. 20 ms. TCP and TLS with the edge: two trips of 10 ms. The request arrives. There is no copy. The edge uses a connection that is already open: one long trip and 30 ms of work. The edge stores a copy and answers. A cold edge still needs the origin's bytes. Proximity shortens the visitor's connection path and creates a nearby reusable copy for later eligible requests. 00:01:28 The next visitor gets the nearby copy Repeat the same request before the edge entry expires. Keep the connection assumptions visible so that the measured improvement can be attributed to serving the cache hit locally. 20 ms. Two trips of 10 ms. The copy is there and fresh. 52 ms instead of 650. The origin saw nothing. In this trace the small response takes fifty-two milliseconds. Edge hits can reduce both latency and origin work, while uncacheable or personalized content follows a different path. 00:02:00 A copy's permission to be reused expires Give the photograph a sixty-second freshness lifetime and visit it on either side of the boundary. Predict when the edge must consult its configured freshness policy. The edge stores a copy until 60. The copy is 20 seconds old. The last second. Expired. The edge asks the origin again. The new copy is 10 seconds old. A stale copy can sometimes be validated or served under permitted stale rules. In this example a fresh origin response establishes the next freshness interval. 00:02:33 Five hit-rate points double the origin's work A launch drives thirty thousand cache-eligible requests each second. Calculate the origin miss traffic at ninety-five percent hits, then at ninety percent, before looking at the chart. The origin meets everything. 30,000 times 0.05 equals 1,500 a second reach the origin. At 90% the origin gets 3,000. Twice as much, from five points. The origin sees fifteen hundred requests per second and then three thousand, assuming one origin request per miss. Small hit-rate shifts matter when the remaining miss fraction is already small.