Cache Strategies & Invalidation

Cache Strategies & Invalidation

One of the two hard problems
Free
4h · 5 lessons
Overview

Cache placement, eviction and the invalidation problem; distributed caches and their failure modes; CDNs, the edge, and how large media actually reaches a browser. The cheapest scaling you will ever do, and the easiest to get wrong.

This module is 03.1 of the 4 in Caching & Delivery. It runs about 4 hours across 5 lessons, and closes with Invalidate — Keep a hit rate above 90% while writes arrive. Serve one stale value to the wrong reader and you lose the round.

Lessons
1. Where a cache can sit, layer by layer

Concept · 30 minutes

2. Read-through, write-through, write-behind

Concept · 35 minutes

3. TTLs, invalidation and the stale window

Concept · 40 minutes

4. Eviction: LRU, LFU and what they cost

Concept · 30 minutes

5. Stampedes, dogpiles and request coalescing

Concept · 35 minutes

Module information
Duration
4 hours
Lessons
5
Level
Intermediate
Track
Caching & Delivery
Drill
Invalidate
Price
Free

Related modules

Distributed Caches
4 hours
5 lessons
Intermediate
Distributed Caches
Free
03.2
CDNs & the Edge
4 hours
5 lessons
Intermediate
CDNs & the Edge
Free
03.3
Object Storage & Media
4 hours
5 lessons
Intermediate
Object Storage & Media
Free
03.4
Queues & Background Workers
4 hours
5 lessons
Intermediate
Queues & Background Workers
Free
04.1