Skip to content
All concepts

Concept

Write-through

With a write-through cache, every write goes to the cache and to the database before the caller is told it succeeded. Reads that follow find the new value already cached. It costs a slower write, in exchange for a cache that is not stale and a database that has every confirmed change.

Watch each write reach the database before the user is told it was saved. A live step from the lesson Write-through vs write-back (Redis / caching). Timings and counts are illustrative.

Where you'll see it