Why it matters
Every fast website uses a CDN. Understanding architecture enables debugging cache issues and picking the right CDN features.
Advertisement
The architecture
PoPs: datacenters distributed globally. Each has HTTP servers + caches.
Routing: user routed to nearest PoP via Anycast (same IP announced from multiple locations) or GeoDNS.
Advertisement
How it works end to end
Cache hit ratio: fraction of requests served from cache. Higher = better cost + latency.
Cache invalidation: URL purge or tag-based invalidation.
Edge compute: run code at PoP (Cloudflare Workers, Fastly Compute@Edge). Sub-millisecond response.
DDoS protection: distribute attack traffic across many PoPs.