Bernie Cook's Blog

Azure, C#, .NET, Architecture & Related Tech News


Leave a comment

Distributed Design: Applying the Command Pattern to Azure’s Web/Worker Roles

WorkerRoleOne place I regularly come across the use of the Command pattern is when working on Azure projects that employ worker roles to execute long running tasks initiated by a scheduled process or user action. The Command pattern lends itself to the distributed nature of these solutions with very little plumbing required when working in Azure.

The following post provides a sample application; CommandQueue which contains 3 examples of a web and worker role utilising the Command pattern. The web role is designed to provide a rapid responses to the user, offloading any lengthy operations to the worker role. The source code for the CommandQueue solution is available on GitHub so feel free to clone, compile and execute it while working through this post.

Continue reading


4 Comments

Distributed Caching in Azure – Cache Worker Role

In June 2012 version 1.7 of the Windows Azure Platform release was introduced and with it came the new cache worker role. This provided another distributed cache management option for Azure developers alongside the likes of AppFabric Caching, or Memcached, to name a few. There are a number of ways to utilise and configure cache worker roles and this post covers one of them, providing a step by step guide to creating a new cloud solution where a web and worker role (cache clients) share the same cache worker role (cache cluster). Continue reading


Leave a comment

ASP.NET MVC 4 Beta – TechDays 2012 Video

Scott Gu gave a talk at TechDays 2012 this week (end Feb 2012) and covered a lot of new features being released as part of ASP.NET MVC 4.  The talk runs for just over 1 hour and 15 minutes and covers the main highlights currently available in the ASP.NET MVC 4 Beta (22.8MB), currently available for download.

This is yet another round of updates Microsoft is making to one of it’s key frameworks and it was an exciting talk to watch … well for the geeks anyway. Continue reading