I want to make use of change stream events in my MongoDB Community Edition server.
I have some data that will be monitored/modified by multiple (mongocxx) connections. Each connection is only concerned about the changes that other connections make, and not its own. So I would like to be able to ignore the change events that a connection causes itself.
Basically, I don’t want a connection to insert/delete/modify a document, and then in its own change stream handler, process the event as if it was caused by an external source.
I could add some metadata to my documents, but I do not think this will work well for all types of events (e.g. deletion - metadata would have to be inserted before deletion takes place). I would still like to handle events caused by other sources (e.g. database administration), so again I do not think this will work well.
Any suggestions would be greatly appreciated!