Course contentsShow
← Cloud and Infrastructure
Lesson 582 of 2,98911. CDN and Edge ComputingFree lesson

What is a CDN and Why Use One

Introduction to Content Delivery Networks, their purpose in reducing latency, and core benefits for web applications.

What is a CDN and Why Use One

You'll learn: Why Content Delivery Networks exist and how they speed up web applications for users worldwide.

The Problem: Distance Matters on the Internet

When a user in Tokyo visits your website hosted in Virginia, their request travels thousands of miles across oceans and continents. Every mile adds milliseconds—milliseconds that accumulate into noticeable delays, especially for images, videos, and JavaScript files.

What is a CDN?

A Content Delivery Network (CDN) is a globally distributed network of servers that cache and serve your static content (images, CSS, JavaScript, videos) from locations physically closer to your users.

Think of it like a pizza chain: instead of one kitchen serving an entire country, they open branches in every major city. Your pizza (content) arrives faster because it comes from nearby, not across the country.

How It Works

When a user requests your website:

  1. The CDN checks if it has a cached copy at the nearest edge server
  2. If yes, it serves the content immediately (cache hit)
  3. If no, it fetches from your origin server once, caches it, then serves subsequent requests from cache

Core Benefits

Reduced Latency: Content travels shorter distances, loading in milliseconds instead of seconds.

Lower Origin Load: Your origin servers handle fewer requests since the CDN absorbs most traffic.

Improved Availability: If your origin goes down, cached content remains available from CDN edge servers.

Bandwidth Savings: You pay less for origin bandwidth since the CDN handles delivery.

DDoS Protection: Many CDNs absorb malicious traffic before it reaches your infrastructure.

Key Takeaway: CDNs cache your content at globally distributed edge locations, dramatically reducing latency and origin load while improving availability and user experience worldwide.