Session guarantees
Session guarantees are consistency contracts for a session's operations, including read-your-writes, monotonic reads, monotonic writes and writes-follow-reads.
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.
Relations
- related
- read-your-writes, monotonic-reads, monotonic-writes, writes-follow-reads
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.
- Storage consistency: ordering is not a transaction or a durability promise
- Microsoft Learn: Consistency levels in Azure Cosmos DB; session consistency and partition-bound tokens.
- MongoDB Manual: Causal Consistency and Read and Write Concerns; durability and rollback distinctions.