Meteor uses Azure MongoDB

Is it possible, and if so, how to use Azure MongoDB as the backend for my Meteor application. I added a connection string from my database to the MONGO_URL variable with no success. I found several previous threads over Stack Overflow and here about incompatibility related to oplog errors, but they seem to be using DocumentDB instead of Azure MongoDB (which I think is newer than a few years ago).

Mongolian variant

+2


source to share


1 answer


In your example, you are actually using DocumentDB with MongoDB compatibility. You are not using native MongoDB (and it is not native MongoDB as-a-service).

DocumentDB (even with MongoDB support) does not provide an oplog command. And since Meteor has a dependency on reading the oplog, you cannot specify Meteor in DocumentDB.



In your case, you either need to run your own MongoDB yourself (for example, in virtual machines), or use a third-party MongoDB solution that provides MongoDB support in the same region as your application. (ok, yes, you can run your app in a different region, but you will see latency along with data collection).

+2


source







All Articles