CSE Roadmap

Common tier · about 4 hours · 8 parts

Part 1 of 8 · 1 min read

Why this page comes fifth in Level 13

In this module you will

  • Explain what a content delivery network (CDN) does and what it should cache.
  • Design the edge, a mid-tier cache layer and the origin shield.
  • Route a user to a nearby healthy edge with DNS or anycast.
  • Decide cache keys, TTLs, invalidation and versioning.
  • Size traffic and cost, and say how to cut the cost.

Almost every design in this course quietly assumed a CDN: images in the news feed, video in Level 11, map tiles on page 3. This page opens the box. It combines caching (Level 2), consistent hashing and load balancing (Level 3), DNS (Level 1) and failure handling (Level 8). The sources are Alex Xu's "System Design Interview" (the CDN section, volume 1) and his video streaming chapter (volume 2, with its cost estimate). Numbers marked "made up" only show the idea.