A CDN (Content Delivery Network) is a network of geographically-distributed servers that cache and serve content from locations near users — reducing latency and offloading origin servers. It's a key component for fast, global content delivery.
What a CDN does
A CDN caches content at EDGE locations (servers) around the world:
→ users get content from the NEAREST edge server (not the distant origin)
→ reduces LATENCY (shorter distance = faster) for global users
→ offloads the ORIGIN server (edges serve cached content → less origin load)
User → nearest CDN EDGE (cached? serve it) → on miss, fetch from origin, then cache
