Secure Your Concurrent Transactions
summary
The talk explains that naive transfer code which reads an account balance, checks it, then updates can fail catastrophically under PostgreSQL's default Read Committed isolation, citing real incidents (Flexcoin) and a 2017 study finding many e‑commerce vulnerabilities. It compares using PostgreSQL’s Serializable (SSI) mode — which detects conflicts and aborts with a retryable error — against the practical costs of SSI such as predicate locking, spurious aborts, replication limitations, and the need to add retry logic in client code.
AI-written summary · about
