Hypothetical scenario. A seller withdraws Northwind product P and receives confirmation. A buyer in another region still sees it as available. Dev explains that replicas converge; Maya asks whether that statement is enough for this buyer’s action.
Priya: “Is this a descriptive page or a decision about eligibility?”
Maya: “Specify what this read may observe before defending the storage setting.”
Define permitted read histories against the selected failure model. Keep price age separate from withdrawal eligibility and distinguish the needs of different readers. One database label cannot substitute for the contract of each end-to-end operation.
Which history is this reader allowed to see?
The product has several readers. A seller checking an accepted edit may require read-your-writes. A browsing page can permit an explicitly bounded descriptive view. An action deciding whether an item remains eligible needs the authority specified for that action. One storage deployment can therefore participate in several different end-to-end contracts.
Write the required history in ordinary language first. If a withdrawal completes before this eligibility read begins, can that read return available? If the answer is no, routing it through an arbitrary stale cache violates the promise even when the database itself provides a stronger option. The caller observes the whole path, including projections, middleware and caches.
A product label does not specify every read
A system can offer different contracts for different operations. A reservation decision may need authoritative coordination, while an item description can permit a bounded or disclosed delay. A relational data model does not by itself make every replica read current, and a document model does not prohibit stronger coordination.
Likewise, “eventual” is not a freshness deadline. It needs assumptions about communication, successful propagation and conflict handling. If the business needs a particular visibility bound or read-your-writes behavior, state and implement it instead of substituting a general label.
Application caches and derived projections also belong in the observed path. A current database read cannot make a previously cached response current unless the cache policy and read path actually use that evidence. Specify the end-to-end operation the user receives.
Compare one history under different observation contracts
Hypothetical scenario. Writer A completes quantity 9, then reader B begins and returns old quantity 7. The existing completed-history example violates a linearizable register because real-time precedence is part of that contract. An eventual replica can allow the old value under a weaker, explicitly stated rule.
| Reader requirement | Needed evidence | Permitted cost |
|---|---|---|
| Own completed write | Session position reached | Route / wait / unavailable |
| Coherent report | One declared snapshot | May lag current writes |
| Latest real-time register | Linearizable operation history | Unavailable when authority cannot establish it |
A session token requiring a particular source position can provide read-your-writes to its holder when routing or waiting enforces it. That does not automatically order another client's reads or make a multi-record transaction strictly serializable. A snapshot can give a coherent point-in-time view while intentionally lagging the latest completed external write.
For a multi-record invariant, describe a transaction history rather than borrowing single-register vocabulary. Serializability admits an equivalent serial order; strict serializability also constrains that order by real-time precedence. During a partition, identify which operations must wait or become unavailable to preserve the chosen contract. An available old description cannot silently reauthorize a withdrawn product.
Describe the history the user may observe
A linearizable operation behaves as though it took effect at a point between invocation and response, preserving the order of non-overlapping operations. For a register-like value, a read beginning after a completed write cannot simply return an older value unless another permitted operation explains the result.
Session guarantees answer narrower questions, such as whether a client observes its own accepted write. Transactions introduce further constraints across operations and records. Do not treat a useful session guarantee as equivalent to a globally linearizable multi-record transaction.
The practical specification should name the operation, its state and observers, and the failure conditions under which it may wait, reject or return a weaker result. An explicit unavailable response can be more truthful than a result that silently violates the promised invariant.
Work through a history and a quorum
Hypothetical scenario. Start with a stored quantity of seven. A write changes it to nine and completes at a chosen timeline position of 20 ms. A read starts at 30 ms and returns seven at 40 ms, with no intervening write. Because the write completed before the read began, that result violates a linearizable single-value contract. The times specify this illustrative history; production clocks do not automatically provide such a shared timeline.
If the operations overlap instead, their invocation order alone does not force the same conclusion. Determine whether there is a permitted placement of their effects within the overlapping intervals. This is why a trace showing an earlier start is not sufficient evidence of an ordering violation.
For a separate quorum example, choose three fixed replicas, require two acknowledgements for a write and read from two replicas. Any two-member write set and two-member read set within the same three members intersect because 2 + 2 > 3. The minimum intersection size is 2 + 2 − 3 = 1.
That set arithmetic does not, by itself, prove linearizability. The design must also establish accepted versions, how a reader chooses or repairs values, ordering of concurrent writes, membership changes and what an acknowledgement means. An intersecting reader can contact a replica without automatically recognizing the correct result.
If one of the fixed three replicas becomes unreachable, two can still form the chosen quorum; if only one remains reachable, they cannot. These are membership counts under the stated model, not a complete availability or data-loss prediction.
A history makes the difference between linearizability and sequential consistency visible. Both constrain possible observations. Linearizability additionally preserves the real-time order of nonoverlapping operations. Sequential consistency preserves each client's program order while allowing a global order that differs from real-time precedence between clients.
| Chosen time | Client A | Client B |
|---|---|---|
| 10 | Invoke set(status = withdrawn) | — |
| 20 | Receive completion | — |
| 30 | — | Invoke read(status) |
| 40 | — | Return available |
With an initial value of available and no other operations, linearizability rejects that result: the completed withdrawal must precede B's read. Sequential consistency alone can place B's read before A's write because neither client's own program order is reversed. This example uses distinct clients. If A writes and then reads in its own program order, sequential consistency must respect that order too.
Read-your-writes is a session guarantee about observing the session's earlier writes. It does not establish a global real-time order for every other client. Sticky routing to an up-to-date owner or a required version carried with the session are possible implementation approaches, but each needs a contract for failover. Sending a session to an arbitrary lagging replica after recovery can lose the very guarantee the routing policy was meant to provide.
Eventual consistency describes convergence under suitable conditions when updates stop; by itself it does not bound how soon a particular reader sees a write. During a partition, a read requiring a current authoritative status may have to wait or report unavailable. A separately declared descriptive view can permit stale data. Name the operation and guarantee rather than assigning one adjective to the entire application.
In the wild: snapshots are a concrete observation rule
PostgreSQL’s transaction-isolation documentation specifies snapshot behavior and the anomalies excluded by its isolation levels. It provides a concrete example of why a successful read needs an interpretation. A database snapshot rule does not by itself promise a current read from an asynchronously updated regional projection.
Keep serializability and linearizability distinct. Serializability constrains a collection of transactions to results equivalent to some serial order. Linearizability constrains operation placement within invocation and response intervals. A design requiring both transaction invariants and real-time precedence must establish both properties at the relevant boundary rather than substitute one familiar word.
Name both the transaction boundary and its real-time promise
Hypothetical scenario. Northwind models a transaction T1 that changes availability and price together. T1 completes before another client invokes T2, which reads both old values. Consider this as an abstract completed history with no other operations. It can be serialized as T2 followed by T1, so serializability alone does not reject it. Strict serializability also requires the order of nonoverlapping transactions to respect real-time precedence; it rejects that ordering. This is a comparison of models, not a claim that a particular PostgreSQL mode produces this exact history.
Jepsen’s strict-serializability model describes that combination of transactional atomicity and real-time order. A system advertising a current multi-row decision needs evidence for the complete transaction scope. Individually linearizable row operations do not by themselves make a sequence of several reads and writes one atomic transaction.
Causal consistency asks another question: if a response depends on a prior update, readers should not observe that dependency out of order under the model. It need not impose an order on unrelated concurrent writes. Read-your-writes covers a session’s own observations, while a bounded-staleness promise additionally needs an explicit age or version bound. Choosing one contract does not silently provide the others.
During a partition, imagine region East has acknowledged withdrawal of P while region West cannot communicate with East. West cannot both return the old available value to every later read and preserve the linearizable status contract. An unavailable result preserves that safety boundary at the expense of the affected operation’s availability. Keeping an explicitly stale descriptive view available is a separate API promise, not a repair of the stronger read.
Abadi’s PACELC discussion distinguishes partition-time consistency/availability trade-offs from consistency/latency choices when communication is functioning. CAP is not a menu that permits ignoring partitions by selecting two letters. Nor does a lower-latency replica policy establish a quantitative freshness bound without source evidence and failure behavior.
For Northwind, put the stronger coordination on withdrawal-sensitive decisions. Permit weaker descriptive reads only where the product accepts them. Record the operation’s actual boundary, session needs and unavailable behavior so a cache, proxy or regional failover cannot weaken the promise under the same success label.
T2 starts after T1 completes but returns the old pair. Which additional condition rejects this serializable abstract history?
Real-time precedence between the complete transactions. A serial order T2 then T1 explains the old pair but reverses that precedence. Strict serializability rejects it; merely naming a serial order or checking each field’s type does not.
Choose an honest response during lost communication
If the region cannot obtain the authority required for a withdrawal-sensitive action, it can wait within the caller’s remaining budget or return an allowed unavailable result. It cannot preserve the stronger promise by silently returning an older eligible status. A separate descriptive browse response may remain useful under a weaker, disclosed contract.
There is no contradiction in keeping product descriptions available while suspending an irreversible eligibility decision. The operations carry different obligations. This does require interfaces and metrics that distinguish the outcomes. A generic success counter would conceal whether the system supplied the required evidence.
An apparently current description resurrects an item
Hypothetical failure scenario. Disconnected regions accept different changes to P. One withdraws it; the other edits a description copied from an older available record. A reconnect merge chooses the entire record with the larger wall-clock timestamp. The description edit restores availability unintentionally.
The conflict rule has overwritten an independent business decision. Define whether withdrawal can be reversed, who is authorized to reverse it, and whether updates carry field-level preconditions or source versions. Agreement on a merged record can distribute a policy error consistently. A larger physical timestamp does not supply missing authorization or establish causal precedence.
Use the smallest sufficient contract
Use stronger coordination where violating the observation promise changes the validity of an action. Use bounded or session-scoped observations where they meet the actual need. Do not require global coordination for every decorative description because a different operation needs it. Equally, do not advertise eventual convergence as a numerical freshness guarantee.
The earlier replica example selected four seconds of lag; that was a workload assumption for a calculation. It is not a proven upper bound under crashes or partitions. A freshness promise needs observable source evidence and a policy for refusing stale results when the bound cannot be established. Page 32 will compose that evidence through a cache.
Challenge the proposed mechanism
An implementation advertises serializable transactions. Is the old-value history automatically forbidden?
Reveal the design reasoning
No. Ask whether its contract adds the real-time constraint and inspect the actual read mode and boundary. A serial order placing the read before the write can explain an abstract serializable history while violating strict serializability.
Decision and reconsideration: Choose the required observation per operation. Document unavailable behavior where the required evidence cannot be obtained.
Inspect three proposed read contracts
A cache returns available after an acknowledged withdrawal. Does a regional routing explanation make this linearizable?
Test the whole operation
No. With no intervening accepted change, the completed withdrawal precedes the later read. Routing explains how the prohibited result happened; it does not make that result permissible.
Two-member reads intersect two-member writes among three fixed replicas. Is the read protocol proved correct?
Separate overlap from version selection
No. The minimum intersection is one member, but the reader still needs defined version selection, write acknowledgement semantics and handling for concurrent changes and membership transitions.
The seller observes their edit. Has every buyer gained the same observation guarantee?
Identify the observer scope
No. Read-your-writes concerns that session. Other clients may follow different paths. State their guarantees separately and preserve the session rule through failover.
The read contract explains what another attempt can learn. Page 27 asks what another delivery is allowed to change, using stable operation identity to distinguish recovery from a new intention.
Northwind decision log
Specify observation rules per operation and observer.
Expose unavailability when required authoritative evidence cannot be obtained.
Next, preserve one effect when an uncertain operation is delivered again.
Go deeper: observations and transaction boundaries
- Book chapter: Transaction Processing, chapter 7: Isolation Concepts — Jim Gray and Andreas Reuter. Examine histories and dependencies.
- Book chapter: Transaction Processing, chapter 3: Fault Tolerance — the same authors. Relate observation assumptions to failure. This is a historical conceptual reference, not current product documentation.
- Video lecture: F2023 #18: Multi-Version Concurrency Control — CMU Database Group. Understand why concurrent readers can observe different versions.
- Primary document: Transaction Isolation — PostgreSQL. Inspect the implemented snapshot rules.