Skip to main content

MongoDB continuous real-time replication using CDC

Use MongoDB Reader in Incremental mode to replicate MongoDB data to a target.

With MongoDB 4.2 or later, MongoDB Reader reads from MongoDB change streams rather than its oplog. See MongoDB Manual > Change Streams. When reading from change streams, MongoDB Reader also:

  • can read from multiple shards. (With MongoDB 4.1 or earlier, a separate MongoDB Reader will be needed for each shard.)

  • supports transactions, providing transaction metadata, and creating individual events for each operation in a transaction. See MongoDB Manual > Transactions for more information.

Striim provides a wizard for creating applications that read from MongoDB and write to Cosmos DB. See Creating an application using a wizard for details.