专业的 Rails 托管服务有哪些优点和缺点?

发布于 2024-08-19 06:53:09 字数 939 浏览 14 评论 0原文

希望我的问题不会太广泛。因此,我尝试构建我的问题,以免得到与这个问题<的问题过于相似的答案/a>.

目前我已经在 Linode 上部署了 Rails 应用程序。服务很好,价格也很合理。但时不时就有一些管理工作。没有那些我也能活下去。最近我开始对其他 Rails 托管服务感兴趣,例如 Heroku 或 EngineYard,还有其他服务。在我看来,他们提供的服务很令人着迷。他们承诺将我们从行政事务中解放出来。好吧,我也许无法选择数据库,但我可以拥有一个像数据库一样工作的数据库,或者可以拥有无​​模式数据库或集群。如果我真的不想关心细节,只想提供提供服务所需的服务,那么我就不应该打扰。但是..我正在寻找但是,可能还有一些事情需要考虑。我发现为 Rails 应用程序(或任何应用程序)选择正确的基础设施至关重要。关于选择正确的基础设施或基础设施提供商,我想到了以下几点:

  • 部署简单
  • 定价 - 我在这里看到两个巨大的模型。先支付处理能力(EngineYard)还是先支付机器配置(Heroku)?什么时候、哪种模型更适用?
  • 迁移 - 将 Rails 应用程序和数据从一个提供商迁移到另一个提供商有多简单。
  • 额外的服务 - 比如 Heroku 提供的 WebSolr,或者 Rails 应用程序的监控。这些事情可能至关重要,或者至少是有用的。

当我想选择我的私人、租用或混合基础设施时,需要考虑哪些事项? Rails 托管服务有这些方面的比较吗?是否有任何来源可以学习如何能够更好地决定任何设计何时、哪种模型最适用?

希望我的问题不要太宽泛,能够在这个论坛上得到合理范围内的解答。我想找到如何设计合适的私人基础设施、VPS 和 Rails 托管服务的组合。感谢您的建议。

Hope my question does not pose as too wide. So I try to frame my question not to get too similar answers to the question of this question.

Currently I have deploy my rails application on Linode. The service works fine, the price is reasonable. But there are those administering works time to time. I could live without those. Recently I started to be interested in other rails hosting services like Heroku or EngineYard, and there are other ones as well. The services they can provide seem to me to be fascinating. They promise to free us from administration things. Ok, I cannot maybe choose the database, but I can have a database which acts like a database, or can have schema-free DBs, or cluster. If I don't really want to care about the details and just want services necessary for provision of my service than I should not bother. But.. I am looking for buts and probably there are some things to consider. I find choosing the right infrastructure for the rails application (or any application) is crucial. These things come to my mind regarding choosing the right infrastructure or the infrastructure provider:

  • simplicity to deploy
  • pricing - I see huge two models here. Paying after processing power (EngineYard) or paying for machine configuration (Heroku)? When, which model applies better?
  • migration - how simple is it to migrate the rails application and the data from one provider to another.
  • additional services - like Heroku provides WebSolr, or monitoring of the rails application. Such things might be crucial or at least useful.

Which things are necessary to consider when I want to choose the - either my private, rented or a mixture - infrastructure? Is there any comparison of these things about the rails hosting services? Are there any sources to learn how to be able to better decide any design when, what kind of model applies the best?

Hope my question does not pose too wide, and can be answered on this forum within a reasonable boundary. I would like to find the way how to design the right cocktail of private infrastructure, VPS and rails hosting services. Thanks for suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

水水月牙 2024-08-26 06:53:09

我仔细研究了 Heroku,将来可能会使用它们。我看到的最大好处是...

  1. 它们消除了系统管理的时间成本。

  2. 如果需要,您可以立即增加处理能力和存储。

我决定暂时不使用 Heroku,因为我需要全文搜索,并且我想使用 Sphinx,而不是 WebSolr。另外,如果您查看他们对 WebSolr 服务的描述,您会发现它有点昂贵对于“测试版”的东西。而此时他们只能索引最多 10,000 个文档。这对于我的应用程序来说是不可能的。

你可以把你的应用程序放在 Heroku 和其他部分——数据库、搜索——其他地方,但这违背了目的。如果你这样做了,你就又回到了系统管理员的身份,如果你需要更多的电力/内存/存储,你就必须处理它。

如果您的应用程序所需的一切都在 Heroku 上,Heroku 可能会很棒。那么潜在的简化和时间节省可能是巨大的。如果我有不同类型的应用程序具有不同的要求,我会尝试它。

I have looked hard at Heroku and may use them in the future. The biggest benefits I see are...

  1. They take away the time cost of system administration.

  2. You can instantly increase processing power and storage if needed.

I decided not to go with Heroku for now because I need full text search and I want to use Sphinx, not WebSolr. Also, if you look at their description of the WebSolr service, you'll find that it's kind of expensive for something that's "in beta." And at this time they only index up to 10,000 documents. That rules it out for my app.

You could put your app on Heroku and other pieces -- database, search -- elsewhere, but that defeats the purpose. If you do that, you are back to being a sysadmin and if you need more power/memory/storage you'll have to handle it.

Heroku could be great if everything your app needs is on Heroku. Then the potential simplification and time savings could be huge. If I had a different kind of app with different requirements I would try it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文