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 Condition | High-value billing updates must never vanish if a cache node crashes 200ms after acknowledging HTTP 200 |
|---|---|
| Recommended Choice | Write-Through (synchronous durable DB write before ack); reserve Write-Back strictly for high-churn, loss-tolerant counters/telemetry |
| Classic Trap | Write-Back caches return 200 before flushing asynchronously to the database—any sudden cache eviction or node crash permanently loses acknowledged writes. |
| Verification | Audited on 2026-11-23 · Distributed Systems Core · 2026 |
30-SECOND DECISION TRAP CHECK · STORAGE
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?
Write-Back trades durability for write speed; if the cache loses power before flushing, acknowledged financial state is permanently lost.
Trap: Never use Write-Back caching for durable financial/order mutations—use Write-Through or direct ACID DB writes.