<aside>
This section is part of the 5-hour System Design Foundations course by Mukul Raina
Section 8: Content Delivery Networks
In Section 2, we established that the speed of light in fiber optic cable is approximately 200,000 km/s, and that a round trip from Mumbai to San Francisco takes a minimum of ~136ms in theory and 200-400ms in practice. No amount of server optimization can overcome the physics of distance. A CDN solves this by placing copies of your content on servers distributed around the world, so that users fetch data from a location nearby instead of from your origin data center.
What We’ll Cover:
The Problem CDNs Solve:
YouTube's origin servers are in the United States.
Without CDN:
User in Mumbai requests a video thumbnail
Request travels: Mumbai → USA → Mumbai
Round trip: ~300ms (just network, before any processing)
Every image, every CSS file, every JS file pays this latency penalty
Page with 50 assets: 50 × 300ms = 15 seconds (serialized) or 300ms+ (parallel but still slow)
With CDN:
Video thumbnail is cached on a CDN edge server in Mumbai
Request travels: Mumbai → Mumbai CDN edge → Mumbai
Round trip: ~10-20ms
50 assets from local CDN: fast, responsive experience
Scale of CDN Infrastructure:
| CDN Provider | Edge Locations | Global Capacity |
|---|---|---|
| Cloudflare | 300+ cities | 209+ Tbps |
| Akamai | 4,000+ locations | 300+ Tbps |
| AWS CloudFront | 450+ points of presence | 150+ Tbps |
| Azure CDN | 190+ locations | N/A |
| Fastly | 90+ locations | 260+ Tbps |
<aside>
Mukul Raina | youtube.com/@mukulraina | slides.mukulraina.com | LinkedIn
</aside>
<aside>
Mukul Raina | youtube.com/@mukulraina | slides.mukulraina.com | LinkedIn
</aside>