linode vs amazon ec2 vs heroku for 亚马逊 s3 项目
我有一个使用 ruby on Rails 3.1 的项目,例如 flickr、tumblr、pinterest...等,其中有很多用于维护的图片。
我的项目有数据库 Mongodb。
我正在使用 amazon s3 作为主机图片。
我想知道获得最高质量/价格的最佳托管组合是 linode + s3,还是 amazon ec2 + s3 或 heroku + amazon s3。
我需要足够的规模,因为该项目正在快速增长。
欢迎任何其他建议:D。
经过大量阅读后,我不清楚。
I have a project in ruby on rails 3.1 like flickr, tumblr, pinterest...etc with a lot of pictures for maintenance.
My project have database Mongodb.
I'm using amazon s3 for host pictures.
I want to know what is the best hosting combination to get the most quality/price, linode + s3, or amazon ec2 + s3 or heroku + amazon s3.
I need enough scale because the project is growing fast.
Any other suggest is welcome :D.
After much reading I am not clear.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想节省最多的钱,那么我会选择 linode (尽管 Amazon ec2 的成本可能差不多)。使用 linode,每月 19.95 美元,您可以获得 20GB 的空间,用于托管您的网站和数据库。如果您使用 s3,那么您可以将 20GB 的大部分用于数据库。不仅如此,在 linode 上,在 Heroku 上需要花钱的插件将是免费的(solr/sphinx、后台作业、电子邮件等)。与 Heroku 相比,仅 20GB 共享数据库的成本就为每月 15 美元。然后,如果您想要 solr、后台作业等,则需要按月付费。
在 linode 上,它是免费的,因为您运行和维护自己的虚拟专用服务器 (VPS)。这让我想到了这里要考虑的最重要的事情之一,linode 会为您节省金钱,但会花费您更多时间,因为您自己管理一切。
无论如何,我目前正在将我的大部分托管从 Heroku 转移到 Linode,因为涉及成本,而且作为一名 Rails 开发人员,我觉得了解如何管理我自己的网络服务器很重要。
不过,拥有自己的 VPS 还有很多其他优势。例如,托管多个网站、创建其他 Web 应用程序使用的多个数据库、您自己的电子邮件服务器等。
更新:2014 年 4 月
linode 的更便宜的替代方案是 digitalocean。他们最便宜的计划目前是 5 美元/月。
If you want to save the most money then I'd go with linode (Amazon ec2 might cost about the same though). With linode for $19.95/month you get 20gb of space where you can host your website and database. If you're using s3 then you can use most of the 20gb for your database. Not only that but on linode the addons that would cost you money on Heroku will be free (solr/sphinx, background jobs, email, etc). Compare this to Heroku where a 20gb shared database alone costs $15/month. Then you need to pay monthly if you want solr, background jobs, etc.
On linode it's free because you run and maintain your own virtual private server (VPS). Which brings me to one of the most important things to consider here, linode will save you money but it will cost you more time since you have to manage everything yourself.
For what it's worth, I am currently in the process of moving much of my hosting over from Heroku to Linode because of the costs involved and because as a rails developer I feel it's important to understand how to manage my own webserver.
There are a lot of other advantages to having your own VPS though. For example, hosting multiple website, creating multiple databases used by other web apps, your own email server, etc.
Update: April 2014
An even cheaper alternative to linode is digitalocean. Their cheapest plan is currently $5/month.
仅从性能角度来看,如果使用 EC2 或 Heroku,您将获得更好的性能,因为两者都是 Amazon 基础设施的一部分(Heroku 在 EC2 上运行)。
但只有当你的图片由 Python 服务器处理时,它才会受益。如果你的图片直接提供给客户端,对使用Linode不会有任何影响:)
Just for a performance point of view, you'll get better performance if you use EC2 or Heroku since both are parts of the Amazon infrastructure (Heroku runs on EC2).
But it will only benefits if your pictures are processed by your Python server. If your pictures are served directly to the client, it will not have any impact to use Linode :)