Monotonic writes
Monotonic writes requires every replica incorporating a later session write to incorporate the session's earlier writes and order them before it.
This is write ordering, not increasing numeric values. A server accepts a session write only if its copy already includes all previous writes of that session, and orders the new write after them. Two server-side constraints support this: new writes are ordered after writes already known, and anti-entropy propagates a write together with its predecessors. [1]
A client-side session manager can track the identifiers of the session's writes and compare them with a server's state, and version vectors give a compact form of that check. Requesting the guarantee for one session does not reduce availability for other sessions. [1]
In one document database's causal sessions, unrelated writes may interleave and only one thread may use a session at a time. Majority read and write acknowledgement gives all four causal guarantees, while a local read with majority writes gives monotonic writes alone. Writes acknowledged by a single node may be rolled back. [2] [4]
Relations
Limitations
- The guarantee orders writes within one session, not writes issued by other sessions or clients. [1]
Citations
- Douglas B. Terry et al. Session Guarantees for Weakly Consistent Replicated Data. PDIS 1994, sections 3.1-3.4, pp. 142-144.
- MongoDB Manual: Read Isolation, Consistency, and Recency; client sessions, causal guarantees and isolation.
- MongoDB Manual: Causal Consistency and Read and Write Concerns; durability and rollback distinctions.
Further reading
Sources & caveats
- session-guarantees read 2026-10-23 from a course mirror because the previously listed copy presented an expired TLS certificate.
- docdb-session-guide and docdb-causal-concerns re-read 2026-10-23 for session threading, the read and write acknowledgement table and rollback.
- A companion analysis on storage consistency ordering is listed but not used in prose.