System Design ($200k+) · STORAGE · Distributed Systems Core · 2026

Write-Through Cache vs Write-Back (Write-Behind) Cache

Quick Decision Rule: When High-value billing updates must never vanish if a cache node crashes 200ms after acknowledging HTTP 200, choose Write-Through (synchronous durable DB write before ack); reserve Write-Back strictly for high-churn, loss-tolerant counters/telemetry.

Trigger ConditionHigh-value billing updates must never vanish if a cache node crashes 200ms after acknowledging HTTP 200
Recommended ChoiceWrite-Through (synchronous durable DB write before ack); reserve Write-Back strictly for high-churn, loss-tolerant counters/telemetry
Classic TrapWrite-Back caches return 200 before flushing asynchronously to the database—any sudden cache eviction or node crash permanently loses acknowledged writes.
VerificationAudited on 2026-11-23 · Distributed Systems Core · 2026

30-SECOND DECISION TRAP CHECK · STORAGE

Test your instinct

To cut p99 latency on invoice status updates from 18ms to 2ms, an engineer switches Redis to Write-Back (acknowledge HTTP 200 immediately, flush to Postgres every 5 seconds). What catastrophic risk was introduced?

Primary Engineering Documentation

Related Storage Decision Guides