monstache icon indicating copy to clipboard operation
monstache copied to clipboard

Further understanding of the worker mode

Open xcxinng opened this issue 1 year ago • 0 comments

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. ^_^

xcxinng avatar May 04 '23 08:05 xcxinng