我可以让多个不同的 Meteor 应用程序在同一个 MongoDB 实例上反应性地运行吗? [英] Can I get multiple different Meteor apps running reactively off the same MongoDB instance?

查看:36
本文介绍了我可以让多个不同的 Meteor 应用程序在同一个 MongoDB 实例上反应性地运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在几个不同的位置部署同一个应用程序,也许还有不同的版本,我希望我的所有部署都运行同一个 Mongo 数据库.采用这种方法有什么陷阱吗?

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?

推荐答案

只要让他们使用相同的 MONGO_URL 就可以了.另见 这个问题.我们正是这样做的,没有遇到任何问题.

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.

如果您在多个物理位置运行,请记住 mongodb 流量不会通过 https 发送.因此,当前的最佳做法是将您的数据库和您的应用程序托管在同一个数据中心内(例如,使用 compose.io 并在 EC2 东部托管).

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).

这篇关于我可以让多个不同的 Meteor 应用程序在同一个 MongoDB 实例上反应性地运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆