Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

norareidy
Copy link
Collaborator

Copy link
Collaborator

@shuangela shuangela left a 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 🔍


- You must use a |majority-rc| read concern.

- You must use a |majority-wc| write concern.
Copy link
Collaborator

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/?

Copy link
Collaborator

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

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants