ReviseAlgo Logo

Chapter I: Networking & Web Fundamentals

Caching Strategies

Cache-aside, write-through, and write-back patterns for reads and writes.

In short

Caching strategies define how reads and writes flow between the app, the cache, and the database.

Loading diagram…

Key takeaways

  • Cache-aside loads on miss; read-through hides that from the app.
  • Write-through is consistent; write-back is fast but can lose data.