Skip to main content

CDN (Content Delivery Network)

Difficulty: Easy | Topic #5

What to Learn

How CDNs cache and serve static assets from edge nodes, cache-control headers, origin shield, dynamic vs static content, CDN invalidation strategies.

Resources

Covered by Problems

ProblemDifficultyLink
File Storage/DropboxEasy
Photo Sharing (Instagram)Medium
Video Streaming (YouTube)Medium

Key Concepts to Master

  • Edge PoP topology and how content reaches the edge
  • Cache-control and Surrogate-Control headers
  • Origin shield to protect origin from cache misses
  • Push vs pull CDN models
  • CDN invalidation (path-based, tag-based) and its cost