SYSTEM DESIGN SERIES · TOPIC 08 OF 23+ · part of the 07 → 08 → 09 chain
1. What a CDN Actually Is
A network of caching servers, spread close to wherever users are
A globally distributed network of caching servers ("PoPs")
Sits between users and your origin server
Serves a cached copy from the PoP closest to the user
Directly cuts the network latency topic 01 was about
Offloads traffic so the origin never sees most of it (topic 03)
2. Why It Works - Distance Is the Enemy
Light through fiber has a speed limit - this is physics, not a bug
Light in fiber travels at ~200,000 km/s, not instantly
Mumbai → Virginia and back pays that round-trip tax on every request
A nearby edge server erases most of that physical distance
This is topic 01's latency lesson, solved geographically
3. Origin Pull vs Origin Push
Origin Pull (Lazy)
Edge fetches from origin on first request
Same idea as cache-aside (topic 07), geographically
First user at each PoP eats a cache miss
VS
Origin Push (Proactive)
Content is uploaded to every edge node upfront
Guarantees availability everywhere, immediately
Wastes space on content nobody there requests
📚 Analogy: Pull is a library that special-orders a book only when someone asks. Push is stocking every branch with every book, whether anyone reads it there or not.
4. What Actually Gets Cached at the Edge
Static was the start - edge compute changed the game