monotonic-writes · shipping · also Monotonic-write consistency, MW session guarantee

Monotonic writes

Monotonic writes requires every replica incorporating a later session write to incorporate the session's earlier writes and order them before it.

Related Observatory article: Read on hesela.com

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

related
Session guarantees, Writes-follow-reads, Adaptive replica selection

Limitations

  • The guarantee orders writes within one session, not writes issued by other sessions or clients. [1]

Citations

  1. Douglas B. Terry et al. Session Guarantees for Weakly Consistent Replicated Data. PDIS 1994, sections 3.1-3.4, pp. 142-144. (accessed 2026-10-23)
  2. MongoDB Manual: Read Isolation, Consistency, and Recency; client sessions, causal guarantees and isolation. (accessed 2026-10-23)
  3. MongoDB Manual: Causal Consistency and Read and Write Concerns; durability and rollback distinctions. (accessed 2026-10-23)

Further reading

  1. Storage consistency: ordering is not a transaction or a durability promise (accessed 2026-10-13)
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.

JSON: /data/terms/monotonic-writes.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Monotonic writes. Hesela. 2026-10-23. https://hesela.dev/terms/monotonic-writes/