运行在Azure中的.NET应用程序 [英] Running a .NET app on Azure

查看:165
本文介绍了运行在Azure中的.NET应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多的经验,在Amazon EC2上运行我的应用程序。它需要一个低端服务器,而我目前正在支付约$ 90 /月为服务器(是的,我知道我并不真正需要的可扩展性,但​​我还是用EC2)。我想知道这个移动应用程序,这是纯粹的.NET,微软的Azure的好处。是否有任何经验:

I have lots of experience running my app on Amazon EC2. It requires a low-end server, and I currently pay approx $90/month for the server (yes, I know I don't really need the scalability, but I still use EC2). I was wondering about the benefits of moving this app, which is purely .NET, to Microsoft Azure. Are there any experiences with:

  • 每月的成本,对于低流量的网站。

  • Cost per month, for a low traffic site.

在移动.net应用程序在EC2上的IIS的作品到MS云计算面临的挑战。

Challenges in moving a .NET app that works on EC2 IIS to the MS cloud.

由于缺乏灵活性的挑战。例如,我可以载入我的IIS7的服务器证书,并具有对数据库的夜间备份的脚本。这将如何转化为天青,在这里我相信有较少的自由管理?

Challenges due to lack of flexibility. For example, I can load my IIS7 server with a certificate and have a script for nightly backups of the database. How would this translate to Azure, where I believe there is less freedom to admin?

如果你是一个EC2人与Azure的贫困经历那么我很愿意听到你的声音太...

If you are an EC2 person with poor experiences of Azure then I would love to hear from you too...

推荐答案

有关Azure的主要模式是部署Web角色和工作者角色的实例。 Web角色基本上是一个.NET Web应用程序。 EC2采用虚拟机为中心的方法。我个人比较喜欢的Web角色模型更好,因为你不必担心任何的通常IT的东西,你做的虚拟机。

The main model for Azure is deploying instances of Web Roles and Worker Roles. A Web Role is basically a .NET web application. EC2 takes a VM centric approach. I personally like the Web Role model better because you don't have to worry about any of the usual IT stuff you do with VMs.

下面一个问题是,你可以有多个虚拟目录就像在IIS上的虚拟机。你有,如果你想从1 Web角色的多个Web应用程序做一些技巧的路由。

One issue here is that you can have multiple virtual directories like in IIS on a VM. You have to do tricks with routing if you want multiple web apps from 1 Web Role.

这是pretty的直白让一个.NET Web应用程序是否是一个MVC应用程序或Web表单应用程序转换为Azure的。

It is pretty straightforward to get a .NET web app whether it is an MVC app or Webforms app converted to Azure.

在这里的一个样品: HTTP://$c$c.msdn.microsoft。 COM / windowsazuresamples 演示了如何移植一个简单​​的Web应用程序。

One of the samples here: http://code.msdn.microsoft.com/windowsazuresamples shows how to port a simple web app.

每月的成本几乎是相同的EC2为等值的服务。微软显然研究了它们的竞争力。如果你有一个MSDN订阅即可获得价值100网络作用的计算机为18个月和3X1GB SQL Azure的自由。

The cost per month is almost identical to EC2 for equivalent services. Microsoft obviously studied their competition. If you have a MSDN subscription you can get 18 months worth of 1 web role computer and a 3X1GB SQL Azure for free.

证书容易加载到Azure上。你只可以为每个角色中放入一个证书。

Certificates are easy to load into Azure. You can only load one cert per role.

SQL Azure的物理存储在多个服务器上复制的,因此您不必再备份到prevent数据丢失(参见IT参考上文)。但是,也有其他所有原因备份。有方法备份到的Azure Blob存储这是很好的,因为它停留在数据中心。此外,再一次,Blob存储数据三重化和地理复制

SQL Azure physical storage is replicated across multiple servers so you don't have to backup to prevent data loss (see IT reference above). However, there are all the other reasons to backup. There are methods to backup to Azure Blob Storage which is nice because it stays in the data center. Also, once again, Blob Storage data is triplicated and geo-replicated.

这篇关于运行在Azure中的.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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