用于 ASP.NET MVC 开发的 Windows Azure 或 Amazon EC2? [英] Windows Azure or Amazon EC2 for ASP.NET MVC Development?

查看:18
本文介绍了用于 ASP.NET MVC 开发的 Windows Azure 或 Amazon EC2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您想构建使用 MSSQL 数据库的企业 ASP.NET MVC 应用程序,使用 Windows Azure 还是 Amazon EC2 更好?

If you want to build enterprise ASP.NET MVC applications that use MSSQL databases is it better to use Windows Azure or Amazon EC2?

我没有找到任何令人满意的答案.

I didn't find any satisfying answers.

那么这两个云平台(价格、性能、集成的简单性等)的优缺点是什么?

So what are the advantages and disadvantages of the two cloud plattforms (Price, Performance, Simplicity of integration, ...)?

推荐答案

两者的目的略有不同 -

Both are for slightly different purposes -

亚马逊是基础设施即服务,这意味着您无需购买硬件、网络设备并对其进行维护.您将获得可以托管 linux 或 windows 操作系统的虚拟机,并且可以轻松安装任何框架、Web 服务器或应用程序,用于托管 Web 应用程序或 Web 服务或长时间运行的进程.您仍然需要负责维护操作系统,这意味着您仍然需要应用升级补丁、防范病毒,并完全负责确保操作系统不会崩溃.

Amazon is infrastructure as a service, which means you dont have to purchase hardwrae, the networking equipment and maintain them. You will get virtual machines that can host linux or windows OS and can easily install any framework, web server or applications you want on it to use for hosting web apps or web services or long running processes. You are still responsible for maintaining the operating system which means that you still need to apply upgrade patches, protect against viruses, and are completely responsible to ensure that the OS does not crash.

Windows azure 是一种平台即服务——您基本上可以像在 Amazon 中一样获得 Windows 虚拟机,但操作系统管理和应用程序框架也完全脱离了您.它允许自动升级和维护操作系统.这也意味着您只需加载您的应用程序并开始工作 - 无需担心低级细节.

Windows azure is a platform-as-a-service - you basically get windows VMs like in Amazon, but the operating system management and the application framework is also completely abstracted away from you. It allows for automatic OS upgrades and maintenance. Also this means you just load your app and it starts working - no need to worry about the low level details.

虽然这减少了您对可以安装什么和不能安装什么的控制,但它为您提供了更少的运营开销,因为您不需要大量的管理工作来维护您的实例.此外,缩放、负载平衡、自动高正常运行时间,所有这些都由 azure 服务控制器(或结构控制器)处理.

While this reduces the control you have over what you can install and what you can't it gives you much lesser operational overhead since you don't need a lot of administrative effort in maintaining your instances. Also scaling up and down, load balancing, auto high uptime, all these are handled by the azure service controller (or the fabric controller).

Sql azure 是朝这个方向迈出的一步——您甚至不必考虑虚拟机,您只需在云中获得一个特定大小的数据库,并为使用的内容付费.数据似乎是三重复制的,因此内置了非常好的可靠性.至少对于较小的数据库来说,拥有这个比拥有一个完整的 sql server 实例要便宜得多.

Sql azure is one step ahead in this direction - you dont even have to consider a VM, you just get a particular size db in the cloud, and you pay for what you use. The data is seemingly triple replicated and hence there is very good reliability built in. It is much cheaper to have this at least for smaller databases than to have a full blown instance for an sql server.

MS 还引入了一些功能,例如 windows server vms,这将为您提供类似 amazon 的实例的选项,但我个人更喜欢当前的 azure.

MS is also introducing some features like windows server vms which will give you an option for having amazon like instances, but I personally like the current azure better.

总结一下 - 对于新的 asp.net mvc 应用程序,带有 sql server 后端,windows azure 是一个很好的构建平台.另一方面,如果您现有的网站对 windows azure 不支持的遗留组件有很多依赖,那么亚马逊将是更好的选择.对于相同大小的实例,亚马逊也会稍微便宜一些(尽管定价结构可能会根据您想要提供的承诺而有所不同).

So to summarize - for new asp.net mvc applications, with sql server backend, windows azure is a great platform to build on. On the other hand, if you have an existing website which has a lot of dependency on legacy components that are not supported by windows azure, amazon will be a far better choice. Also Amazon will be slightly cheaper for an instance of same size (though the pricing structures can vary depending on the commitment you want to give).

这篇关于用于 ASP.NET MVC 开发的 Windows Azure 或 Amazon EC2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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