什么是Windows Azure中的AppFabric?

时间:2021-08-25 16:30:53

I am trying to understand exactly an AppFabric in Windows Azure, What is the difference with Worker Role and Web Role and How to create a project of AppFaric in Visual Studio 2010, i mean which kind of project ?

我试图准确理解Windows Azure中的AppFabric,与工作者角色和Web角色有什么区别以及如何在Visual Studio 2010中创建AppFaric项目,我的意思是哪种项目?

Thx.

谢谢。

3 个解决方案

#1


16  

Adding a bit to vtortola's answer:

添加一点vtortola的答案:

There are three core areas of the Windows Azure platform:

Windows Azure平台有三个核心区域:

  • Windows Azure (which provides virtual machines and massively-scalable storage through Blobs, Tables, and Queues
  • Windows Azure(通过Blob,表和队列提供虚拟机和可大规模扩展的存储
  • SQL Azure (which is a large subset of SQL Server), offering a full relational database up to 50GB
  • SQL Azure(SQL Server的一个很大的子集),提供高达50GB的完整关系数据库
  • Windows Azure AppFabric (a set of services that you can opt into, currently comprising access control, connectivity, and caching)
  • Windows Azure AppFabric(您可以选择的一组服务,目前包括访问控制,连接和缓存)

When you construct your Windows Azure application, you can really pick and choose what pieces of the platform you're interested in. For instance, Windows Azure provides Web and Worker roles (both essentially identical virtual machines running Windows Server 2008 or R2, but Web roles have IIS enabled). If you need a relational database, you can very easily set up a database. And, then there's AppFabric:

构建Windows Azure应用程序时,您可以真正选择您感兴趣的平台部分。例如,Windows Azure提供Web和辅助角色(两者都是运行Windows Server 2008或R2的基本相同的虚拟机,但Web角色已启用IIS)。如果需要关系数据库,则可以非常轻松地设置数据库。而且,还有AppFabric:

  • If you need to connect to a set of web services on premises, for instance, you can use the AppFabric Service Bus (a secure way to connect without having to open up a firewall)
  • 例如,如果您需要连接到本地的一组Web服务,则可以使用AppFabric Service Bus(一种安全的连接方式,无需打开防火墙)
  • If you need to actually connect to an entire computer on-premise, use Azure Connect (a software VPN).
  • 如果您需要在内部实际连接到整个计算机,请使用Azure Connect(软件VPN)。
  • If you want to cache data (such as asp.net session state) between instances of your virtual machines, enable and use the AppFabric Cache (currently a Community Technology Preview, so no pricing yet).
  • 如果要在虚拟机实例之间缓存数据(例如asp.net会话状态),请启用并使用AppFabric Cache(当前为社区技术预览,因此尚无定价)。
  • If you need to add access control to your application, use AppFabric's Access Control Service, which essentially lets you outsource your identity management.
  • 如果您需要向应用程序添加访问控制,请使用AppFabric的访问控制服务,它基本上允许您外包您的身份管理。

There are quite detailed examples in the Platform Training Kit that vtortola referenced. Additionally, there's a complete Identity Management training kit.

平台培训套件中有相当详细的例子,vtortola引用了这些例子。此外,还有一个完整的身份管理培训套件。

#2


6  

Azure AppFabric is a suite of middleware services and technologies to help you develop and manage services/applications that use Windows Azure. Middleware is typically defined as software that helps connect other pieces of software, and this definition is pretty accurate for the services appFabric provides.

Azure AppFabric是一套中间件服务和技术,可帮助您开发和管理使用Windows Azure的服务/应用程序。中间件通常被定义为帮助连接其他软件的软件,这个定义对于appFabric提供的服务非常准确。

You don't create an App Fabric per say. AppFabric services are used by your other applications as needed, so setup is typically configuring certain items in the Azure Portal, then implementing libraries of config entires in your web/worker roles that leverage the resources.

您不会为每个人创建App Fabric。 AppFabric服务由您的其他应用程序根据需要使用,因此设置通常是在Azure门户中配置某些项目,然后在您的Web /辅助角色中实施配置库以利用这些资源。

Essentially AppFabric provides certain resources that you need when composing complex applications as services, vs. you having to implement and maintain these resources yourself.

基本上,AppFabric提供了在将复杂应用程序组合为服务时所需的某些资源,而您必须自己实现和维护这些资源。

The basic offerings are:

基本产品是:

Service Bus: A message relay that can be consumed by other .NET technologies (and others). SB helps you connect different cloud services as well as "hybrid" services. The hybrid is a big deal, as SB helps you easily connect on-premise web services with services you run in the cloud, w/o having to mess around with VPN, protocols, server setups, certificates, etc etc.

服务总线:可由其他.NET技术(和其他)使用的消息中继。 SB可帮助您连接不同的云服务以及“混合”服务。混合是一个大问题,因为SB可以帮助您轻松地将本地Web服务与您在云中运行的服务连接起来,而不必使用VPN,协议,服务器设置,证书等。

Access Control: An authentication and authorization service, helping you manage user-level access without having to extend/implement Active Directory, LDAP, and custom user authentication modules throughout Azure.

访问控制:一种身份验证和授权服务,可帮助您管理用户级访问,而无需在Azure中扩展/实施Active Directory,LDAP和自定义用户身份验证模块。

Caching: an in-memory distributed caching layer for your applications. This is typical to memcached or the Windows Server version of AppFabric

缓存:适用于您的应用程序的内存分布式缓存层。这是memcached或AppFabric的Windows Server版本的典型特征

Integration: a PaaS service of EDI/transport technology like BizTalk server

集成:EDI /传输技术的PaaS服务,如BizTalk服务器

Composite App: allows the composition of complex applications using a compistion language versus just putting a bunch of code together. You basically define your application using a designer like you would a EF.Net data model or a Windows Workflow

复合应用程序:允许使用compistion语言组合复杂应用程序,而不是将一堆代码放在一起。您基本上使用设计器定义应用程序,就像使用EF.Net数据模型或Windows Workflow一样

So basically AppFabric provides you with a lot of services that you likely need, but the typical cloud developer may not want to "mess with" at least at first. This way you have these great building blocks to help you focus on your core logic/needs during development cycles while not limiting what your application can ultimately do. This "focus" is one of the core benefits to cloud computing, especially Platform as a Service, and is one area where Azure really shines compared to other offerings.

因此,基本上AppFabric为您提供了许多您可能需要的服务,但典型的云开发人员可能不希望至少在开始时“弄乱”。通过这种方式,您可以使用这些优秀的构建块来帮助您在开发周期中专注于核心逻辑/需求,同时不限制应用程序最终可以执行的操作。这种“焦点”是云计算的核心优势之一,尤其是平台即服务,是Azure与其他产品相比真正闪耀的一个领域。

Some of these technologies are still in beta. The AppFabric site makes this very clear, but its important to be aware of.

其中一些技术仍处于测试阶段。 AppFabric网站非常清楚,但重要的是要注意。

Great place to start is the Azure AppFabric site itself, which breaks a lot of this down, gives you great examples of how to use, and some sample code for you to get your feet wet.

开始的好地方是Azure AppFabric网站本身,它打破了很多这个,给你很好的使用示例,以及一些示例代码让你的脚湿透。

http://www.microsoft.com/windowsazure/AppFabric/Overview/default.aspx#top

http://www.microsoft.com/windowsazure/AppFabric/Overview/default.aspx#top

#3


2  

Basically:

基本上:

  • WebRole : similar to a web application.
  • WebRole:类似于Web应用程序。
  • WorkerRole: similar to a Windows service.
  • WorkerRole:类似于Windows服务。
  • AppFabric: Group of services that allow you interconnect applications inside and outside Azure.
  • AppFabric:允许您在Azure内部和外部互连应用程序的服务组。

Download and read/do the Azure training kit, it will solve those questions and tell you how to create that project in Visual Studio step-by-step.

下载并阅读/执行Azure培训工具包,它将解决这些问题并告诉您如何在Visual Studio中逐步创建该项目。

#1


16  

Adding a bit to vtortola's answer:

添加一点vtortola的答案:

There are three core areas of the Windows Azure platform:

Windows Azure平台有三个核心区域:

  • Windows Azure (which provides virtual machines and massively-scalable storage through Blobs, Tables, and Queues
  • Windows Azure(通过Blob,表和队列提供虚拟机和可大规模扩展的存储
  • SQL Azure (which is a large subset of SQL Server), offering a full relational database up to 50GB
  • SQL Azure(SQL Server的一个很大的子集),提供高达50GB的完整关系数据库
  • Windows Azure AppFabric (a set of services that you can opt into, currently comprising access control, connectivity, and caching)
  • Windows Azure AppFabric(您可以选择的一组服务,目前包括访问控制,连接和缓存)

When you construct your Windows Azure application, you can really pick and choose what pieces of the platform you're interested in. For instance, Windows Azure provides Web and Worker roles (both essentially identical virtual machines running Windows Server 2008 or R2, but Web roles have IIS enabled). If you need a relational database, you can very easily set up a database. And, then there's AppFabric:

构建Windows Azure应用程序时,您可以真正选择您感兴趣的平台部分。例如,Windows Azure提供Web和辅助角色(两者都是运行Windows Server 2008或R2的基本相同的虚拟机,但Web角色已启用IIS)。如果需要关系数据库,则可以非常轻松地设置数据库。而且,还有AppFabric:

  • If you need to connect to a set of web services on premises, for instance, you can use the AppFabric Service Bus (a secure way to connect without having to open up a firewall)
  • 例如,如果您需要连接到本地的一组Web服务,则可以使用AppFabric Service Bus(一种安全的连接方式,无需打开防火墙)
  • If you need to actually connect to an entire computer on-premise, use Azure Connect (a software VPN).
  • 如果您需要在内部实际连接到整个计算机,请使用Azure Connect(软件VPN)。
  • If you want to cache data (such as asp.net session state) between instances of your virtual machines, enable and use the AppFabric Cache (currently a Community Technology Preview, so no pricing yet).
  • 如果要在虚拟机实例之间缓存数据(例如asp.net会话状态),请启用并使用AppFabric Cache(当前为社区技术预览,因此尚无定价)。
  • If you need to add access control to your application, use AppFabric's Access Control Service, which essentially lets you outsource your identity management.
  • 如果您需要向应用程序添加访问控制,请使用AppFabric的访问控制服务,它基本上允许您外包您的身份管理。

There are quite detailed examples in the Platform Training Kit that vtortola referenced. Additionally, there's a complete Identity Management training kit.

平台培训套件中有相当详细的例子,vtortola引用了这些例子。此外,还有一个完整的身份管理培训套件。

#2


6  

Azure AppFabric is a suite of middleware services and technologies to help you develop and manage services/applications that use Windows Azure. Middleware is typically defined as software that helps connect other pieces of software, and this definition is pretty accurate for the services appFabric provides.

Azure AppFabric是一套中间件服务和技术,可帮助您开发和管理使用Windows Azure的服务/应用程序。中间件通常被定义为帮助连接其他软件的软件,这个定义对于appFabric提供的服务非常准确。

You don't create an App Fabric per say. AppFabric services are used by your other applications as needed, so setup is typically configuring certain items in the Azure Portal, then implementing libraries of config entires in your web/worker roles that leverage the resources.

您不会为每个人创建App Fabric。 AppFabric服务由您的其他应用程序根据需要使用,因此设置通常是在Azure门户中配置某些项目,然后在您的Web /辅助角色中实施配置库以利用这些资源。

Essentially AppFabric provides certain resources that you need when composing complex applications as services, vs. you having to implement and maintain these resources yourself.

基本上,AppFabric提供了在将复杂应用程序组合为服务时所需的某些资源,而您必须自己实现和维护这些资源。

The basic offerings are:

基本产品是:

Service Bus: A message relay that can be consumed by other .NET technologies (and others). SB helps you connect different cloud services as well as "hybrid" services. The hybrid is a big deal, as SB helps you easily connect on-premise web services with services you run in the cloud, w/o having to mess around with VPN, protocols, server setups, certificates, etc etc.

服务总线:可由其他.NET技术(和其他)使用的消息中继。 SB可帮助您连接不同的云服务以及“混合”服务。混合是一个大问题,因为SB可以帮助您轻松地将本地Web服务与您在云中运行的服务连接起来,而不必使用VPN,协议,服务器设置,证书等。

Access Control: An authentication and authorization service, helping you manage user-level access without having to extend/implement Active Directory, LDAP, and custom user authentication modules throughout Azure.

访问控制:一种身份验证和授权服务,可帮助您管理用户级访问,而无需在Azure中扩展/实施Active Directory,LDAP和自定义用户身份验证模块。

Caching: an in-memory distributed caching layer for your applications. This is typical to memcached or the Windows Server version of AppFabric

缓存:适用于您的应用程序的内存分布式缓存层。这是memcached或AppFabric的Windows Server版本的典型特征

Integration: a PaaS service of EDI/transport technology like BizTalk server

集成:EDI /传输技术的PaaS服务,如BizTalk服务器

Composite App: allows the composition of complex applications using a compistion language versus just putting a bunch of code together. You basically define your application using a designer like you would a EF.Net data model or a Windows Workflow

复合应用程序:允许使用compistion语言组合复杂应用程序,而不是将一堆代码放在一起。您基本上使用设计器定义应用程序,就像使用EF.Net数据模型或Windows Workflow一样

So basically AppFabric provides you with a lot of services that you likely need, but the typical cloud developer may not want to "mess with" at least at first. This way you have these great building blocks to help you focus on your core logic/needs during development cycles while not limiting what your application can ultimately do. This "focus" is one of the core benefits to cloud computing, especially Platform as a Service, and is one area where Azure really shines compared to other offerings.

因此,基本上AppFabric为您提供了许多您可能需要的服务,但典型的云开发人员可能不希望至少在开始时“弄乱”。通过这种方式,您可以使用这些优秀的构建块来帮助您在开发周期中专注于核心逻辑/需求,同时不限制应用程序最终可以执行的操作。这种“焦点”是云计算的核心优势之一,尤其是平台即服务,是Azure与其他产品相比真正闪耀的一个领域。

Some of these technologies are still in beta. The AppFabric site makes this very clear, but its important to be aware of.

其中一些技术仍处于测试阶段。 AppFabric网站非常清楚,但重要的是要注意。

Great place to start is the Azure AppFabric site itself, which breaks a lot of this down, gives you great examples of how to use, and some sample code for you to get your feet wet.

开始的好地方是Azure AppFabric网站本身,它打破了很多这个,给你很好的使用示例,以及一些示例代码让你的脚湿透。

http://www.microsoft.com/windowsazure/AppFabric/Overview/default.aspx#top

http://www.microsoft.com/windowsazure/AppFabric/Overview/default.aspx#top

#3


2  

Basically:

基本上:

  • WebRole : similar to a web application.
  • WebRole:类似于Web应用程序。
  • WorkerRole: similar to a Windows service.
  • WorkerRole:类似于Windows服务。
  • AppFabric: Group of services that allow you interconnect applications inside and outside Azure.
  • AppFabric:允许您在Azure内部和外部互连应用程序的服务组。

Download and read/do the Azure training kit, it will solve those questions and tell you how to create that project in Visual Studio step-by-step.

下载并阅读/执行Azure培训工具包,它将解决这些问题并告诉您如何在Visual Studio中逐步创建该项目。