Linux linode vs amazon ec2 vs heroku for project with amazon s3
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9375990/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
linode vs amazon ec2 vs heroku for project with amazon s3
提问by hyperrjas
I have a project in ruby on rails 3.1 like flickr, tumblr, pinterest...etc with a lot of pictures for maintenance.
我有一个 ruby on rails 3.1 项目,如 flickr、tumblr、pinterest 等,其中包含大量用于维护的图片。
My project have database Mongodb.
我的项目有数据库 Mongodb。
I'm using amazon s3 for host pictures.
我正在使用亚马逊 s3 作为主机图片。
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.
我想知道什么是获得最高质量/价格的最佳托管组合,linode + s3,或 amazon ec2 + s3 或 heroku + amazon s3。
I need enough scale because the project is growing fast.
我需要足够的规模,因为该项目发展迅速。
Any other suggest is welcome :D.
欢迎任何其他建议:D。
After much reading I am not clear.
经过大量阅读,我不清楚。
采纳答案by Dty
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.
如果您想节省最多的钱,那么我会选择linode(尽管 Amazon ec2 的成本可能大致相同)。使用 linode 每月 19.95 美元,您可以获得 20GB 的空间,您可以在其中托管您的网站和数据库。如果您使用的是 s3,那么您可以将 20GB 的大部分用于您的数据库。不仅如此,在 linode 上,在 Heroku 上花钱的插件也是免费的(solr/sphinx、后台工作、电子邮件等)。将此与 Heroku 进行比较,后者仅 20GB 共享数据库的费用为每月 15 美元。然后如果你想要solr,后台工作等,你需要每月支付。
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 moneybut it will cost you more timesince you have to manage everything yourself.
在 linode 上它是免费的,因为您运行和维护自己的虚拟专用服务器 (VPS)。这让我想到了这里要考虑的最重要的事情之一,linode 会为您省钱,但会花费您更多的时间,因为您必须自己管理一切。
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.
就其价值而言,我目前正在将我的大部分主机从 Heroku 转移到 Linode,因为所涉及的成本以及作为 Rails 开发人员我觉得了解如何管理我自己的网络服务器很重要。
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.
不过,拥有自己的 VPS 还有很多其他优势。例如,托管多个网站、创建其他 Web 应用程序使用的多个数据库、您自己的电子邮件服务器等。
Update: April 2014
更新:2014 年 4 月
An even cheaper alternative to linode is digitalocean. Their cheapest plan is currently $5/month.
比 linode 更便宜的替代品是digitalocean。他们最便宜的计划目前是 5 美元/月。
回答by ndeverge
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).
仅从性能的角度来看,如果您使用 EC2 或 Heroku,您将获得更好的性能,因为两者都是 Amazon 基础设施的一部分(Heroku 在 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 :)
但只有当您的图片由您的 Python 服务器处理时,它才会受益。如果您的图片直接提供给客户端,则使用 Linode 不会有任何影响:)