{
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "The guarantee orders writes within one session, not writes issued by other sessions or clients.",
      "citationIds": [
        "session-guarantees"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-23",
  "slug": "monotonic-writes",
  "term": "Monotonic writes",
  "aliases": [
    "Monotonic-write consistency",
    "MW session guarantee"
  ],
  "definition": "Monotonic writes requires every replica incorporating a later session write to incorporate the session's earlier writes and order them before it.",
  "note": "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. [session-guarantees]\n\nA 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. [session-guarantees]\n\nIn 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. [docdb-session-guide] [docdb-causal-concerns]",
  "related": [
    "session-guarantees",
    "writes-follow-reads",
    "adaptive-replica-selection"
  ],
  "citations": [
    {
      "id": "session-guarantees",
      "title": "Douglas B. Terry et al. Session Guarantees for Weakly Consistent Replicated Data. PDIS 1994, sections 3.1-3.4, pp. 142-144.",
      "url": "https://pages.cs.wisc.edu/~remzi/Classes/739/Papers/bayou-sessions94.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "docdb-session-guide",
      "title": "MongoDB Manual: Read Isolation, Consistency, and Recency; client sessions, causal guarantees and isolation.",
      "url": "https://www.mongodb.com/docs/manual/core/read-isolation-consistency-recency/",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-consistency",
      "title": "Storage consistency: ordering is not a transaction or a durability promise",
      "url": "https://hesela.com/analyses/storage-consistency-ordering/",
      "accessed": "2026-10-13"
    },
    {
      "id": "docdb-causal-concerns",
      "title": "MongoDB Manual: Causal Consistency and Read and Write Concerns; durability and rollback distinctions.",
      "url": "https://www.mongodb.com/docs/manual/core/causal-consistency-read-write-concerns/",
      "accessed": "2026-10-23"
    }
  ],
  "provenance": [
    "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."
  ]
}
