Try
↑ ↓ move↵ openesc close

Curriculum · Module 09, Edge and Networking

Lesson 1 · 7 topics · 30 min · Intermediate · 0/7 done

CDNs and edge caching

Serve copies from caches near users. A TTL trades origin load against freshness, the cache key decides what counts as the same object, and purge, stale-while-revalidate and a shield shape the rest.

What each topic covers

  • A single origin answers every request itself. Distance adds delay, and popular files multiply the load.
  • A request is a hit or a miss. The time to live decides how long a copy counts as fresh.
  • Run skewed traffic through edge caches and change the TTL, the cache key and the edge count.
  • What lowers the hit ratio without anyone changing a setting, and what a long TTL does to freshness.
  • Keep the key small so requests share copies, and delete copies on change instead of waiting for a TTL.
  • Serve an expired copy at once while one request refreshes it, and put one cache between many edges and the origin.
  • Three quick checks on TTL, cache keys and the shield, with the standards behind the lesson.

Topics

  1. 1One origin, every user3 min
  2. 2Hit, miss and the TTL4 min
  3. 3Move the TTL and watch the origin8 min
  4. 4A noisy key, a cold edge, a stale page4 min
  5. 5Cache keys and purging4 min
  6. 6Stale while revalidate and the origin shield4 min
  7. 7Edge caches in review3 min

Practise this lesson

8 interview questions on cdns and edge caching, with worked answers and sources.

Practise these

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms