What is a CDN?

A Content Delivery Network (CDN) is a globally distributed network of servers that caches and delivers web content from locations closest to the user. Instead of every request traveling to your origin server, nearby CDN edge nodes serve cached copies.

How CDNs Work

  1. User requests a resource (image, CSS, HTML)
  2. DNS routes the request to the nearest CDN edge server
  3. If cached (cache hit), the edge serves it instantly
  4. If not cached (cache miss), the edge fetches from origin, caches it, then serves it

Benefits

Major CDN Providers

When You Don't Need a CDN

Very small sites with local audiences, or applications where every request must hit the origin (real-time data, personalized content) may not benefit much from a CDN.