Course contentsShow
← System Design
Lesson 525 of 1,91915. Consistency ModelsFree lesson

Strict Serializability

Combining serializability (transaction isolation) with linearizability for strongly consistent transactions.

Strict Serializability

What you'll learn: How to combine the strongest transaction isolation with real-time ordering for bulletproof consistency guarantees.


The Convergence of Two Guarantees

You've learned serializability (transactions appear to execute one-at-a-time in some order) and linearizability (operations respect real-time ordering). Strict serializability is the marriage of both: transactions execute in a serial order that respects real-time, meaning if transaction T1 commits before T2 begins in wall-clock time, T1 must appear before T2 in the serial order.

This is the strongest consistency model practical systems can offer.

Why It Matters

Serializability alone doesn't guarantee that a transaction committed at 3:00 PM appears before one that started at 3:01 PM—just that some valid serial order exists. Linearizability ensures real-time ordering for single operations but says nothing about multi-operation transactions.

Strict serializability gives you both: transactions are isolated (serializability) and ordered by real-time (linearizability).

The Mental Model

Imagine a single-threaded application where each transaction runs completely before the next one starts, and they run in the exact order requests arrived by wall-clock time. That's strict serializability. It's as if there's one global lock and one global clock everyone agrees on.

The Cost

Achieving this requires:

  • Distributed consensus (for global ordering)
  • Careful timestamp assignment across nodes
  • High coordination overhead

Systems like Google Spanner use atomic clocks and GPS to achieve this. Most databases don't offer it because the performance cost is prohibitive for many use cases.

Key Takeaway:
Strict serializability combines serializability (transaction isolation) with linearizability (real-time ordering), providing the strongest consistency guarantee—at significant coordination cost.