是多么的Azure网站和Azure的Web角色之间的区别 [英] What is the difference between an Azure Web Site and an Azure Web Role

查看:289
本文介绍了是多么的Azure网站和Azure的Web角色之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是新的 Azure网站和传统Azure的Web角色的ASP.NET MVC应用程序?我会选择什么原因,网站上一个Web角色,反之亦然?

What are the material differences between the new Azure Web Sites and the traditional Azure Web Roles for an ASP.NET MVC application? What reason would I choose a "web site" over a "web role" or vice versa?

让我们假设我需要相等容量在任一情况下(例如,2小实例)。价格看起来比实际上存在的网站,33%的临时打折,而他们在自己的preVIEW时期可比其他。

Let's assume that I would need equal capacity in either case (e.g. 2 small instances). The prices seem comparable other than the fact that there is a 33% temporary discount for web sites while they are in their preview period.

有没有事情,我可以用一个网站是困难或不可能的Web角色呢?例如,它变得容易把多个网站使用网站的单一组VM?难道我失去了一个网站与网络角色什么?能够微调IIS?能够在本地使用缓存服务?

Are there things that I can do with a "web site" that are difficulty or impossible with a web role? For example, does it become easy to put multiple web sites in a single set of VMs using "web sites"? Do I lose anything with a "web site" vs a "web role"? Ability to fine tune IIS? Ability to use the Cache service locally?

推荐答案

Web角色给你超越Web应用程序(原网站)几个特点:

Web Roles give you several features beyond Web Apps (formerly Web Sites):


  • 能够运行高架启动脚本安装应用程序,修改注册表设置,安装性能计数器,微调IIS等。

  • 能够拆分应用成层(也许Web角色的前端,后端处理工作者角色),并独立地扩展

  • 能够RDP到您的虚拟机的调试目的

  • 网络隔离

  • 专用虚拟IP地址,它允许云服务Web角色实例访问IP限制的虚拟机

  • ACL限制端点(在Azure的SDK 2.3,2014年4月加入)

  • 任何TCP / UDP端口支持(网站仅限于TCP 80/443)

Web应用程序有超过Web角色的优势,但:

Web Apps have advantages over Web Roles though:


  • 近即时部署与部署历史记录/回滚

  • Visual Studio的在线,github上,当地的混帐,FTP,codePLEX,DropBox的,到位桶部署支持

  • 有能力推出众多CMS的和框架之一,(如Word preSS是,Joomla,Django的,链接到MediaWiki等)

  • SQL数据库或MySQL使用

  • 简单快捷,免费层扩展到共享层来专门层

  • 网上工作

  • 的网站内容备份

  • 内置的基于Web的调试工具(CMD简单/ PowerShell的调试控制台,进程管理器,诊断工具,如日志流媒体等)

随着2014年4月和2014年9月的推出,现在有一些通用的Web应用程序和Web角色(和工作者角色)功能,其中包括:

With the April 2014 and September 2014 rollouts, there are now some features common to both Web Apps and Web Roles (and Worker Roles), including:


  • 分期+生产插槽

  • 通配符DNS,SSL证书

  • Visual Studio集成

  • 流量管理器支持

  • 虚拟网络支持

下面是一个截屏我从网站画廊选择了表格:

Here's a screengrab I took from the Web Sites gallery selection form:

我认为Web应用程序是一个伟大的方式得到快速启动和运行,在那里你可以摆脱共享预留资源。一旦你长大了这一点,你就可以向上移动到网络角色和扩大,因为你所需要的。

I think Web Apps are a great way to get up and running quickly, where you can move from shared to reserved resources. Once you outgrow this, you can then move up to Web Roles and expand as you need.

这篇关于是多么的Azure网站和Azure的Web角色之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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