How to listen for changes to a MongoDB collection?
What you are thinking of sounds a lot like triggers. MongoDB does not have any support for triggers, however some people have “rolled their own” using some tricks. The key here is the oplog. When you run MongoDB in a Replica Set, all of the MongoDB actions are logged to an operations log (known as … Read more