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
- The problem
- The simple version
- How they differ
- Check your understanding