System Design · Senior · Question 23 of 75

How do cache-aside, write-through and write-back strategies differ?

Explanation

Cache-aside (lazy loading) is the most common: on a miss, read the DB and put the result in the cache. Write-through keeps the cache up to date at the cost of slower writes. Write-back is faster but risks losing data if the cache fails.

Further reading

Problem with a question

System Design · Senior · question 23

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz