CSE Roadmap

Core tier · about 3 hours · 6 parts

Part 1 of 6 · 1 min read

Why this page comes first after the basics

In this module you will

  • Describe who talks to whom in cache-aside and read-through, and pick between them.
  • Describe write-through, write-back and write-around, and the risk each one carries.
  • Choose between updating a cache entry and deleting it when the data changes.
  • Walk through a race between a reader and a writer that leaves a stale entry.
  • Count database reads and writes saved by each pattern in a small example.

Module 1 showed why a cache pays off. This page says how the cache is filled and kept in step with the database. The pattern chosen decides where the logic lives, how stale the data can get, and what is lost if the cache dies. The tier is Core. The numbers are made up to show the idea, unless the text names a book.