tezvyn:

Serializable Snapshot Isolation: True Serializability Without Heavy Locking

Source: Wikipedia: Serializable Snapshot Isolationadvanced

SSI upgrades Snapshot Isolation to true serializability. It optimistically lets transactions run, but aborts one if a dangerous read-write dependency arises. This prevents subtle data corruption in systems like PostgreSQL without heavy locking.

Serializable Snapshot Isolation (SSI) provides true serializability by upgrading standard Snapshot Isolation. It optimistically allows transactions to work on a consistent data snapshot, but tracks read-write dependencies to detect "write skew" anomalies that SI alone misses. If a dangerous dependency cycle forms, it aborts one transaction to maintain correctness. It's used in databases like PostgreSQL for the strongest guarantee without the high cost of two-phase locking. The footgun: your application must handle and retry transaction aborts.

Read the original → Wikipedia: Serializable Snapshot Isolation

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Serializable Snapshot Isolation: True Serializability Without Heavy Locking · Tezvyn