Cianplan

Level 2: Data · L2.6 Caching strategies

Write strategies: through, back, around

Compare write-through, write-back and write-around by staleness and durability.

12 min · Pro

What you take away

  • Write-through updates the cache and the database together: the cache is never stale, and every write pays both.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. How they differ
  4. Check your understanding