Can I get multiple different Meteor apps running reactively off the same MongoDB instance?

五迷三道 提交于 2019-12-23 02:52:41

问题


I'd like to deploy the same app at a couple different locations, and perhaps also in different versions, and I'd like all my deployments to run off the same Mongo database. Are there any pitfalls to taking this approach?


回答1:


Just have them use the same MONGO_URL and it will work fine. Also see this question. We do exactly that and have not encountered any problems.

If you are running in multiple physical locations, keep in mind that mongodb traffic isn't sent over https. For this reason, the current best practice is to host your database and your app in the same in the same data center (e.g. use compose.io and host in EC2 east).



来源:https://stackoverflow.com/questions/28012989/can-i-get-multiple-different-meteor-apps-running-reactively-off-the-same-mongodb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!