Use WCF  Communication with role instance in azure 1)In worker role build WCF Service public override void Run() { // This is a sample worker implementation. Replace with your logic. Trace.TraceInformation("WorkerRole1 entry point called", "…
<Windows Azure Platform 系列文章目录> 在上一章内容中,我们提到了Windows Azure会依次调用角色(Role)实例的OnStart()方法和Run()方法. 在本节中我们会对Role的生存周期进行进一步的了解.首先,让我们走到幕后看看一个Role Instance是怎么被发布到虚拟机上并启动起来的. Role在虚拟机上部署和运行的过程 以下是角色实例(Role Instance)发布和启动的一个简要过程. Windows Azure在服务器池中选择一个有足够CP…
<Windows Azure Platform 系列文章目录> 本文是对Windows Azure Platform (六) Windows Azure应用程序运行环境内容的补充. 我们知道,在Windows Azure PaaS,有一个非常重要的概念,就是Web Role和Worker Role. 在创建Azure Cloud Service的时候,会提示如下的选项: -Web Role是响应客户端的HTTP请求 -Worker Role则是在后台执行的应用程序,概念上类似于Windows…
<Windows Azure Platform 系列文章目录> 本章DEMO部分源代码,请在这里下载. 在上一章中,笔者介绍了我们可以使用Azure PaaS的Web Role和Worker Role来处理复杂的业务逻辑 -Web Role可以快速响应前端的业务请求,并将输入保存到Azure Storage Queue中 -Worker Role将数据从Queue中读取,可以在后端处理复杂的业务逻辑 -可以看到,Azure Storage Queue是前端业务逻辑和后端业务处理的桥梁 该架构图…
<Windows Azure Platform 系列文章目录> Update 2016-01-12 https://azure.microsoft.com/zh-cn/documentation/articles/cache-dotnet-how-to-use-in-role/ 微软宣布Azure Managed Cache Service和Azure In-Role Cache会在2016年11月30日下线,建议所有的用户采用Redis Cache. 有关Redis Cache的内容,请参考…
<Windows Azure Platform 系列文章目录> Update 2016-01-12 https://azure.microsoft.com/zh-cn/documentation/articles/cache-dotnet-how-to-use-in-role/ 微软宣布Azure Managed Cache Service和Azure In-Role Cache会在2016年11月30日下线,建议所有的用户采用Redis Cache. 有关Redis Cache的内容,请参考…
Building worker role B (email sender) for the Windows Azure Email Service application - 5 of 5. This is the fifth tutorial in a series of five that show how to build and deploy the Windows Azure Email Service sample application. For information about…
Building worker role A (email scheduler) for the Windows Azure Email Service application - 4 of 5. This is the fourth tutorial in a series of five that show how to build and deploy the Windows Azure Email Service sample application. For information a…
Building the web role for the Windows Azure Email Service application - 3 of 5. This is the third tutorial in a series of five that show how to build and deploy the Windows Azure Email Service sample application. For information about the application…
.NET Multi-Tier Application Using Storage Tables, Queues, and Blobs - 1 of 5 This tutorial series shows how to create a multi-tier ASP.NET MVC 4 web application that uses Windows Azure Storage tables, queues, and blobs, and how to deploy the applicat…