Serializable Snapshot Isolation | Systems Design Interview: 0 to 1 with Ex-Google SWE
3-Second Blueprint (English)
- Snapshot isolation reads from a consistent point-in-time state but can still suffer concurrency anomalies on dependent writes.
- Serializable Snapshot Isolation (SSI) tracks in-progress row reads and aborts transactions if a relied-upon predicate changes before commit.
- Unlike pessimistic two-phase locking for heavy contention, optimistic SSI avoids lock overhead when most concurrent writes are disjoint.
Snapshot IsolationSerializable SSIRead Predicate TrackingOptimistic ConcurrencyTwo-Phase Locking
3-Sekunden-Fazit (Deutsch)
- Snapshot Isolation liest aus einem konsistenten Datenbank-Zeitpunkt, bleibt aber anfällig für Anomalien bei abhängigen Schreibzugriffen.
- Serializable Snapshot Isolation (SSI) verfolgt aktive Leseprädikate und bricht Transaktionen ab, wenn sich diese vor dem Commit ändern.
- Anders als pessimistisches Two-Phase Locking spart optimistisches SSI Sperr-Overhead, wenn parallele Schreibvorgänge meist disjunkt sind.
Snapshot IsolationSerializable SSILeseprädikat-TrackingOptimistische NebenläufigkeitTwo-Phase Locking
Note / Hinweis: Blueprints are AI-generated educational summaries (0% Politics · 0% Religion · 0% Brainrot) and do not constitute medical, legal, or financial advice. / KI-generierte Zusammenfassung zu Bildungszwecken – ersetzt keine medizinische, rechtliche oder finanzielle Fachberatung.