Write-around
A strategy that writes straight to the database and skips the cache. Writing is fast, but reading right away is a cache miss.
Example
A record is saved in the database in 50 ms; if someone reads it right after, it's not in the cache and takes another 50 ms.
Test yourself: Write-around
Cache
What does write-around do?
It skips the cache: if read right away, it's a 50 ms miss instead of a 1 ms hit.
0/1
â–¶ Play