mongodb - Should i use the Mongo DB that comes with meteor? -
when creating meteor app., mongo installed default , runs automatically when run app. in past, other non-meteor apps, have tried place app code files , database on separate servers ensure can scale them independently. feels though default mongo install convenient way meteor use database out-of-the box, going. thinking ahead, want app scale, should start thinking using mongo instance on separate server and, if so, process go through detach default mongo instance meteor app?
the instance of mongodb comes meteor use when developing app. in production environment, should either install own mongo instance or use service.
i recommend using compose.io in production. we've had experience them , basic deployment comes access oplog critical scaling app.
either way, in production provide 2 urls app via environment variables:
- mongo_url
- mongo_oplog_url (this optional recommended)
if go compose, here the guide integrating meteor.
Comments
Post a Comment