Hi, reading https://www.mongodb.com/docs/manual/changeStreams/#open-a-change-stream, it mentions:
For a replica set, you can issue the open change stream operation from any of the data-bearing members.
which seems to suggest that we can consume change stream from a replica (secondary node). Some questions around that:
- Is there any config to only allow read change stream from secondary? If so, how do we handle a secondary being promoted to primary or a secondary node get terminated?
- Is there a config to only allow read change stream from primary? Or is it actually the default behavior?
Any related example or documentation would also be helpful! Thanks