🔄
Two-Phase ACID Transaction Commit
1
BEGIN Transaction
Allocates unique TxID in engine
2
DML Writes & Row Locks
Updates account balances in RAM buffer
3
WAL fsync Flush
Writes delta log to non-volatile disk
4
COMMIT & Lock Release
Changes visible to concurrent readers
✓ ARCHITECTURAL ADVANTAGES
Prevents double-spending and ledger inconsistencies.
✗ TRADE-OFFS & COMPLEXITIES
Higher isolation levels introduce row locking, deadlocks, and reduced write throughput.
🏢