Caching
Keeping hot data close: where caches live, how to read and write through them, and how to evict and invalidate without serving wrong data or melting the database.
- 3 topics
- Quiz on every topic
0% read
- 0 / 3topics read
- –average quiz score
- 0 daysreading streak
- 0saved to revise
Your progress is saved in this browser. Nothing is sent to us.
Module 07
Caching
-
7.1
Read
Caching: Where Caches Live
A cache keeps a copy of data somewhere faster to reach than its source. Learn the layers where caches live, from the browser to the database, what to cache at each, and how to measure whether a cache works.
-
7.2
Read
Cache Strategies: Cache-Aside, Read-Through, Write-Through, Write-Behind
How data gets into a cache, and what happens on writes, decides how fresh and how safe your cached data is. Learn cache-aside, read-through, write-through, write-behind and refresh-ahead, with their trade-offs.
-
7.3
Read
Cache Eviction, Invalidation and Stampedes
A cache is small, so something must leave when it fills up, and stale entries must go when data changes. Learn LRU, LFU and TTL eviction, invalidation approaches, and how to stop a cache stampede from flattening your database.