System Design Fundamentals
Back to Data and Communication

CDNs & Edge

Static content delivery from servers near users. Cache hit ratios, invalidation, and edge compute. FIND_VIDEO: search 'CDN content delivery network explained' — recommended channel: ByteByteGo / CloudFlare YouTube. Aim for 9 min or under.

4 minutesVideo LessonPDF notes
🎯 Free Guest Mode: You are learning for free. Sign in to save your completion progress and quiz answers.
Loading progress...

Key moments

  1. Evolution of CDNs — CDNs evolved from 1990s static delivery tools into critical infrastructure for optimizing all HTTP traffic.
  2. PoPs and Edge Servers — Points of Presence deploy edge servers globally to reduce user latency by shortening physical travel distance.
  3. Routing: DNS vs Anycast — CDNs direct users to optimal edge locations via either dynamic DNS resolution or BGP Anycast routing.
  4. Edge Caching and Transformation — Edge servers act as reverse proxies that offload origin bandwidth, cache assets, and perform on-the-fly content optimization.
  5. Edge TLS Termination — Terminating TLS handshakes close to the user accelerates performance even for completely dynamic and uncacheable requests.
  6. Security and Availability — Distributed CDN capacity absorbs volumetric DDoS attacks and maintains high availability across hardware failures.
PDF notes

Frequently asked questions

Why put dynamic, non-cacheable API traffic behind a CDN?

The client completes the multi-round-trip TLS and TCP handshake at the physically close edge server. The edge then reuses established persistent connections to the origin, significantly reducing overall response times.

How does Anycast distribute a single IP address globally?

Multiple PoPs advertise the identical IP prefix using BGP. Internet service provider routers automatically direct client packets across the shortest topological path to the nearest advertising PoP.

How do CDNs defend origin servers from large-scale DDoS attacks?

CDNs distribute volumetric traffic across globally dispersed PoP networks with massive aggregate bandwidth, filtering malicious packets at the edge before they reach the origin.

How was this lesson?

Your feedback helps us refine explanations and catch bugs.