Writing Policies for Caching

Learn about the various writing policies for building a cache layer in a distributed system.

The methods used to write data on a cache are called writing policies. In this lesson, we will discuss three caching types.

Write-through cache

In this caching technique, when a request is received, data is written on the cache and also on the database. This can happen either in parallel or one after another.

In this strategy, the cache will hold the most recently written data. And it will be consistent with the database.

Get hands-on with 1400+ tech skills courses.