Is it possible to replicate a collection in MongoDB I would like to replicate/synchronize a collection named &quot;CollectionA&quot; from a mongoDB &quot;DataBaseA&quot; to a mongoDB &quot;DatabaseB&quot; in real-time

DatabaseB is a normal database (not shared and not a replica)
The DatabaseB will have writes to it, but not for collection &quot;CollectionA&quot;
The synchronization/replication should be done in real-time with a delay defined based on network latency

I'm trying to achieve this without writing any custom code. Is this possible?
Depending on what is your MongoDB server version... Solution is use method &quot;Change Streams&quot; or &quot;Oplog tailing&quot;
Where you are &quot;listening&quot; changes of source DB and replicating those commands to destination DB (at other MongoDB installation)