Caffeinated Coder
Book an appointment
Lesson 44 · Building systems

Caching

Some answers are slow to get, so programs keep a copy close by. Follow one price through the cache-aside pattern: the app asks a Redis cache first, misses, loads from the database and keeps a copy for 60 seconds, then hits. See why copies go stale, how a time to live and invalidation keep them fresh, how a full cache evicts the least recently used copy, and where caches sit, from your browser to the database.

12 min10 steps5 questionsBeginner
Fig 44 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.