What a CDN is
A Content Delivery Network is a fleet of servers ("edges" or "PoPs") distributed worldwide, each holding cached copies of your content. When a user requests a file, the CDN serves it from whichever edge is closest to them โ not from your origin in us-east-1.
Three wins:
- Speed: a user in Tokyo gets your CSS from a Tokyo PoP in 10ms instead of from Virginia in 200ms.
- Origin offload: 95% of asset requests never reach your servers. Your bandwidth bill and capacity needs shrink.
- Resilience: a CDN absorbs traffic spikes (and many DDoS attempts) before they hit your origin.
The trade: cached data can be stale, and you have to think about how to invalidate it.
