⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠
Excalidraw Data
Text Elements
Client 1
client 2
cache
database
a=1
a=2
a=2
a=1
data a is consistent between cache and database
delete a
read a, cache miss
read a=1
set a=1 to cache
set a=2
delete cache first
delete cache later
read a, cache miss
read a=1
update a=2
delete
set a=1
selected solution: read aside + write around
write cache first
write to cache operation is very fast