用于 ASP.NET MVC 开发的 Windows Azure 或 Amazon EC2?

发布于 2024-10-05 07:01:07 字数 141 浏览 1 评论 0原文

如果您想构建使用 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, ...)?

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

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

发布评论

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

评论(7

零度℉ 2024-10-12 07:01:07

两者的用途略有不同 -

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

Windows azure 是一个平台即服务 - 您基本上可以像在 Amazon 中一样获得 Windows 虚拟机,但操作系统管理和应用程序框架也完全从您那里抽象出来。它允许自动操作系统升级和维护。此外,这意味着您只需加载应用程序即可开始工作 - 无需担心低级细节。

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

Sql azure 在这个方向上领先了一步 - 您甚至不必考虑虚拟机,您只需在云中获得特定大小的数据库,然后按使用量付费。数据似乎是三次复制的,因此内置了非常好的可靠性。至少对于较小的数据库而言,拥有此功能比拥有完整的 SQL Server 实例要便宜得多。

MS 还引入了一些功能,例如 Windows 服务器虚拟机,这将为您提供拥有类似亚马逊实例的选项,但我个人更喜欢当前的 azure。

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

Both are for slightly different purposes -

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

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

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

橘味果▽酱 2024-10-12 07:01:07

Roopesh 很好地描述了其中的一些差异。针对您的具体情况,让我补充一下。

由于您想使用 Microsoft SQL Server,Azure 的 SQL Azure 将是一个不错的选择。此外,如果您将应用程序部署到 Azure Web 角色(角色是具有特定模板的虚拟机,Web 角色专门运行 IIS),则您可以直接使用同一数据中心中的 SQL Azure 数据库,而不会产生任何问题。您的应用程序和数据库之间的任何带宽费用或互联网延迟。

需要澄清的是:SQL Azure 确实对您的数据进行三重复制。此复制是即时的,因此当您从客户中删除*时请记住这一点,因为此删除也是三次复制的。规划备份策略时请考虑这一点(也许利用 Azure 的同步服务定期备份到 Azure 或本地的另一个数据库)。

Roopesh gave a good description of some of the differences. Let me add to it, for your specific case.

Since you want to use Microsoft SQL Server, Azure's SQL Azure is going to be a good fit. Further, if you deploy your application into an Azure Web Role (a role is a virtual machine with a specific template, and a web role specifically runs IIS), you can then work directly with your SQL Azure databases in the same data center without incurring any bandwidth charges or Internet latency between your app and your database.

One clarification: SQL Azure does triple-replicate your data. This replication is instant, so keep this in mind when you DELETE * FROM CUSTOMERS, as this deletion is also triple-replicated. Consider this when planning your backup strategy (maybe take advantage of Azure's sync service to periodically back up to another database, either in Azure or on-premises).

偏爱你一生 2024-10-12 07:01:07

目前,我们在私有云上为客户托管我们自己的应用程序,并且目前正在将其作为研发项目迁移到 Azure。

我们的产品利用 MSSQL Server 的自由文本搜索功能。不幸的是,这还没有进入 Azure。

我认为,与 AWS 相比,现在迁移到 Azure 将使切换到或支持任何其他平台变得更加困难。

We currently host our own app on a private cloud for our customers and we're currently migrating it to Azure as an R&D project.

Our product utilizes the Free Text Search feature of MSSQL Server. Unfortunately that hasn't made it into Azure.

I'm thinking that moving to Azure now will make it more difficult, compared to AWS, to switch to, or to support any other platform down the track.

围归者 2024-10-12 07:01:07

我发现 SQL Azure 很慢。如果您需要高性能数据库解决方案,请寻找其他地方。 SQL Azure 似乎只适合不进行大量数据库访问的低流量站点。正如其他人指出的那样,由于其易用性,这是一个非常方便的解决方案,但是......

I've found SQL Azure to be slow. If you need a high-performance database solution, look elsewhere. SQL Azure only seems to be suited for low-traffic sites that don't do a lot of database accesses. As others have pointed out, it is a very convenient solution because of its ease of use, but...

逆蝶 2024-10-12 07:01:07

虽然从成本角度来看亚马逊看起来不错,但他们的免费实例仅限 Linux。对于窗户成本是可比的。 Amazon 角色基本上是虚拟机,您必须管理盒子的其余部分。虽然 VM 角色现在可以在 Azure 上使用(如果您需要的话),但我更喜欢使用 Azure Web 角色,因为平台/负载平衡的其余部分都已为您处理好。

如果您订阅 MSDN 或成为 Microsoft 合作伙伴(或通过 Bizspark 或类似计划),您可以免费访问 azure 资源:

http://www.microsoft.com/windowsazure/offers/default.aspx

SQL Azure 也是 Azure 的一大优势 - 它是完全复制和管理的。如果您想要 Amazon 上的 MSSQL,您可以安装它,但您必须自己管理它。

While Amazon looks good from a cost perspective, their free instances are linux only. For windows costs are comparable. Amazon roles are basically VMs, you have to manage the rest of the box. While VM roles are now available on azure if you want that, I prefer using the Azure Web roles as the rest of the platform/load balancing is all taken care of for you.

If you subscribe to MSDN or become a Microsoft partner (or via Bizspark or similar program) you can get access to azure resources for free:

http://www.microsoft.com/windowsazure/offers/default.aspx

SQL Azure is also a big advantage with Azure - it's fully replicated and managed. If you want MSSQL on Amazon you can install it, but you have to manage it yourself.

诗笺 2024-10-12 07:01:07

微软将向 Azure 添加 VM 角色,以便 Azure 将具有像 EC2 一样的 Iass 选项。

http://www.microsoft.com/windowsazure/compute/default.aspx

Microsoft will add VM role to Azure so Azure will have Iass option to like EC2.

http://www.microsoft.com/windowsazure/compute/default.aspx

情愿 2024-10-12 07:01:07

Azure 目前不支持具有 2 个或更多 NIC 的 VM

Azure currently do not support VM with 2 or more NICs

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