Discussion about this post

User's avatar
Nic's avatar

I think the diagram is just missing the pros and cons of each strategy.

Expand full comment
Akshay Baura's avatar

**Write-through**: data is written in cache & DB; I/O completion is confirmed only when data is written in both places

**Write-around**: data is written in DB only; I/O completion is confirmed when data is written in DB

**Write-back**: data is written in cache first; I/O completion is confirmed when data is written in cache; data is written to DB asynchronously (background job) and does not block the request from being processed

Expand full comment
10 more comments...

No posts