Module 1 · Lesson 2 Preview Beginner

What is a CDN?

10 min read

What is a Content Delivery Network?

A CDN is a network of servers across the globe. The full name is Content Delivery Network. These servers cache content and serve it to users near them. So users get content from a server nearby. Most requests no longer travel to your origin.

But that definition is abstract. Let's make it concrete with an analogy.

CDN (Content Delivery Network)

CDN

A geographically distributed network of edge servers that cache copies of a site's content close to users and answer each request from a nearby node. It cuts latency, offloads the origin and can absorb spikes and attacks. It is not a web host: the origin keeps the definitive copy.

View full definition

The Library Analogy

Imagine a huge central library. It holds every book ever written. It sits in one place, say Amsterdam. When someone in Tokyo wants a book, they request it. They wait for it to be shipped across the world. Only then can they read it.

Now it opens local branches in each big city. Each branch keeps copies of the most popular books. When someone in Tokyo wants a popular book, they walk to their local branch. No international shipping is needed.

That's exactly what a CDN does:

  • Central library = Your origin server
  • Local branches = CDN edge servers (Points of Presence)
  • Popular books = Cached content
  • Requesting a book = HTTP request
Loading animation...
Watch how content flows from origin to edge to user

The Problem CDNs Solve

Without a CDN, each request goes to your origin server. That server may be thousands of miles away. This creates three problems:

Origin

1. Latency (The Speed of Light Problem)

Physics is unforgiving. Light in fiber optic cables travels at about 200,000 km/s. A round trip from Tokyo to Amsterdam is roughly 18,000 km. It adds at least 90ms of latency. And that's before your server starts processing the request.

With a CDN edge server in Tokyo, the request might travel 50km. It adds less than 1ms. Users can notice the difference.

Latency

2. Single Point of Failure

If your origin server goes down, your entire site goes down. If the path to your origin has issues, some users can't reach you.

CDNs provide redundancy. If one edge server fails, traffic routes to another. If your origin goes down, cached content may still be served. It depends on your setup.

3. Origin Overload

When a site goes viral, the origin gets all requests. Servers have limits. CPU, memory, and bandwidth can run out. Past those limits, you see slow pages or crashes.

With a CDN, most requests never reach your origin. The edge handles them. Only new or expired content hits the origin. That cuts load a lot.

Core Benefits

Benefit How It Works Impact
Performance. Content served from a nearby edge. Big latency cuts for distant users.
Reliability. A redundant global network. You get higher uptime and failover.
Scalability. The edge absorbs the traffic spikes. Handle viral traffic on its own.
Cost Reduction. Less origin bandwidth and compute. You pay less for infrastructure at scale.
Why Organizations Use CDNs

What CDNs Are NOT

Know what CDNs don't do. It matters as much as what they do:

The Mental Model

Here's the key insight that will help you throughout this course:

CDNs at Scale

To give you a sense of how central CDNs are to the modern internet:

  • CDNs move most of the internet's public traffic
  • Big providers run from dozens to thousands of PoPs. They span every continent.
  • Single CDNs handle hundreds of terabits per second at peak
  • Response times are short. Often in single-digit milliseconds.

When you stream Netflix or scroll Instagram, you're using a CDN. You may not know it.

Quick Check

In the library analogy, what does a local branch represent?

Correct! Not quite.
Explanation

A local branch is like an edge server.

  • Both keep popular copies close to users.
  • The main library is the origin server.
Quick Check

Which statement about CDNs is a misconception?

Correct! Not quite.
Explanation

A CDN does not fix a slow origin.

  • The first request still pays the origin time.
  • Later requests can come from the edge cache.
  • The other options are real CDN benefits.

Enjoying this preview?

Unlock all lessons, hands-on exercises, and earn your CDN certification.

Get Full Access

Ready to Master CDN?

You've just scratched the surface. Create a free account to access the full course, hands-on exercises, and earn your CDN Certified credential.

Free intro module Track progress Certificate

No credit card required · Free forever tier available