Quick Decision Rule: When Storing financial ledger balances where zero committed-transaction loss is required across sudden node crashes, choose ACID relational database (PostgreSQL / Aurora) with synchronous WAL replication; use Redis strictly as a rebuildable cache.
| Trigger Condition | Storing financial ledger balances where zero committed-transaction loss is required across sudden node crashes |
|---|---|
| Recommended Choice | ACID relational database (PostgreSQL / Aurora) with synchronous WAL replication; use Redis strictly as a rebuildable cache |
| Classic Trap | Default Redis AOF (`appendfsync everysec`) can lose up to 1 second of committed writes on crash, and Redis lacks multi-key durable ACID isolation guarantees. |
| Verification | Audited on 2026-11-23 · Distributed Systems Core · 2026 |
30-SECOND DECISION TRAP CHECK · STORAGE
To cut p99 latency, an AI-generated PR replaces PostgreSQL with Redis (default AOF `everysec`) as the sole database for customer wallet balances. Why should you block this PR?
Redis is an in-memory data store whose default async persistence (`appendfsync everysec`) risks losing committed transactions on sudden crash. Financial ledgers require a durable ACID database.
Trap: Never use Redis as the sole system of record for zero-loss financial ledger state.