Skip to content Skip to sidebar Skip to footer

Can Python Write To Database And Meteor Reactively Update

Can Python be writing data to a database (mongdb) and have Meteor receive updates of the database writes and update the frontend?

Solution 1:

Meteor 0.7.2 and later implements this functionality fully via the oplog observe driver. Writes to Mongo are immediately reflected on any Meteor servers backed by the database.

This is achieved by having Meteor watch the operations in the Mongo oplog, so that any database operations are incorporated into live data cursors immediately. In previous versions of Meteor, this happened via polling, which could take up to 10 seconds for data to propagate. However, everything is now immediate with the latest driver.

Post a Comment for "Can Python Write To Database And Meteor Reactively Update"