Grokking the System Design Interview
Ask Author
Back to course home

0% completed

Vote For New Content
Write-around cache:

Idhant Haldankar

Aug 12, 2025

I wanted to confirm my understanding.

So in this type of cache update - Write-around cache - dont we also delete/purge the the record in cache layer? I wonder how will the client expect "cache miss" by simply updating the DB records.

2

0

Comments
Benjamin Eckardt
Benjamin Eckardt3 months ago

I think it's intentionally not described as it could be different things here:

  1. You can Invalidate (purge) the cached entry as you mentioned
  2. You can do a lazy purge via eviction if slight staleness is tolerable

Since the second case is quite rare think you ar...

D
dhiman.abhishek61 a month ago

I guess we don't! That is separate thing and it depends on what invalidation methods are deployed like refreshing, TTL or Purging. But Write-around cache as a concept would not support consistency when a record is updated in the write operation, though creating a new re...