{
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-13",
  "slug": "session-guarantees",
  "term": "Session guarantees",
  "aliases": [
    "Session consistency guarantees"
  ],
  "definition": "Session guarantees are consistency contracts for a session's operations, including read-your-writes, monotonic reads, monotonic writes and writes-follow-reads.",
  "note": "Specify the requested guarantees and how session context is retained. Implementations differ: Azure Cosmos DB uses partition-bound tokens; recreating a client loses its token cache. A session is not an atomic transaction, and its label alone does not specify a durability contract.",
  "related": [
    "read-your-writes",
    "monotonic-reads",
    "monotonic-writes",
    "writes-follow-reads"
  ],
  "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://classes.cs.uchicago.edu/archive/2026/spring/23380-1/papers/terry_sessionguarantees.pdf",
      "accessed": "2026-10-13"
    },
    {
      "id": "mongodb-sessions",
      "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-13"
    },
    {
      "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": "cosmos-sessions",
      "title": "Microsoft Learn: Consistency levels in Azure Cosmos DB; session consistency and partition-bound tokens.",
      "url": "https://learn.microsoft.com/en-us/azure/cosmos-db/consistency-levels",
      "accessed": "2026-10-13"
    },
    {
      "id": "mongodb-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-13"
    }
  ]
}
