Caching & Data Flow

Eviction, write policies, stampedes and stale reads: keeping a cache honest under load.

8 LESSONS~120 MIN
START WITH LRU EVICTION ▸ DRILL MODE ⏱

BEFORE YOU START

This path assumes you can already do the following. Each line says where ATLAS teaches it.

  1. 01 LRU EVICTION Discard whoever you haven't talked to in the longest time L214 MIN
  2. 02 WRITE-THROUGH vs WRITE-BACK Safety vs speed — pick one, lose the other L214 MIN
  3. 03 CACHE-ASIDE The app owns the caching logic — and the staleness risk L215 MIN
  4. 04 CACHE STAMPEDE When a popular key expires, everyone races to recompute L215 MIN
  5. 05 CONSISTENT HASHING Add a node and only about K/(N+1) keys move L216 MIN
  6. 06 TTL, JITTER & NEGATIVE CACHING A thousand keys set at once expire at once L112 MIN
  7. 07 CDN & CACHE INVALIDATION You purged the origin, and the edge is still serving yesterday L215 MIN
  8. 08 CAPSTONE: CACHE A FEED WITH READ-YOUR-WRITES Everything in this path, in one timeline L320 MIN
COMING TO THIS PATH