Search code examples
mongodbmeteorreactive-programmingmongodb-oplog

Meteor alternatives for observing mongo changes


I like how Meteor observe and observeChanges methods work. The problem is I use it on a background and need to have only one instance that observes and modifies data. Also it's hungry on CPU resources. My observers perform jobs on specific changes. Since that, I can not scale horizontally, having my observers in main app. That's why I'm looking for something lightweight for that purposes.

What is the best practice to observe mongo? Are there any other technologies?


I'm not aware of oplog tailing. This question is exactly about it. Some lightweight technology for oplog tailing.


Solution

  • Want you are looking to monitor is the oplog. Tailing the oplog is part of how Meteor does it's reactivity, and the best option out there right now to do this sans Meteor by-far is mongo-oplog.

    If you feel like getting your hands a little dirty, definitely read through the docs to better familiarize yourself with the oplog.