Tailing the MongoDB Replica Set Oplog with Scala and Akka Stream
khamrakulov.de
khamrakulov.de
Also note that non-capped collections don't support tailable cursors, so this won't work. Documentation: https://docs.mongodb.org/manual/tutorial/create-tailable-cur...
*Edit: clarified that the oplog is a capped collection for context
We used this to enable streaming updates in MongoDB to Neo4j.[2]
[1] https://github.com/mongodb-labs/mongo-connector [2] https://github.com/neo4j-contrib/neo4j_doc_manager
The oplog is super useful for auditing and eventing.