-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSP-48660: Causal consistency edits #97
base: main
Are you sure you want to change the base?
DOCSP-48660: Causal consistency edits #97
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for doing this technical investigation 🔍
dbx/causal-consistency.rst
Outdated
|
||
- You must use a |majority-rc| read concern. | ||
|
||
- You must use a |majority-wc| write concern. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth calling out that this is the default (similar to the callout about the driver enabling causal consistency by default): https://emptysqua.re/blog/how-to-use-mongodb-causal-consistency/?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify, this is for write concern
dbx/causal-consistency.rst
Outdated
MongoDB enables **causal consistency** in client sessions. | ||
The causal consistency model guarantees that operations within a session | ||
MongoDB enables **causal consistency** in certain client | ||
sessions to guarantee that operations within a session | ||
run in a causal order. Clients observe results that are consistent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
S: Add something like "operations within a session in a distributed system run in a causal order" to make it clear that causal consistency holds with replica sets/nodes
JIRA - https://jira.mongodb.org/browse/DOCSP-48660