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

Further understanding of the worker mode #686

Open
xcxinng opened this issue May 4, 2023 · 0 comments
Open

Further understanding of the worker mode #686

xcxinng opened this issue May 4, 2023 · 0 comments

Comments

@xcxinng
Copy link

xcxinng commented May 4, 2023

As the document said: monstache will hash the id of each document using consistent hashing so that each id is handled by only one of the available workers.

And my question is: Do these three processes subscribe to the same change stream?

If positive, MongoDB would presumably send three events to the three worker processes, and then they use consistent hashing to determine whether this document should be handled by the current worker, do I understand it correctly?

Any responses would be thankful. ^_^

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

No branches or pull requests

1 participant