| By Srinivasan Sundara Rajan | Article Rating: |
|
| November 29, 2010 12:33 PM EST | Reads: |
8,473 |
While most Cloud Platforms are viewed as Virtualization, Hypervisors, Elastic Instances and infrastructure-related flexibility that enables you to arrive at the dynamic infrastructure, Windows Azure is a complete development platform where the scalability of the multi-tiered systems can be enabled through the usage of ‘Design Patterns'.
Below are the common ‘Design Patterns' that can be realized using the Windows Azure as a PaaS platform.
Web Role & Worker Role
Windows Azure currently supports the following two types of roles:
- Web role: A web role is a role that is customized for web application programming as supported by IIS 7 and ASP.NET.
- Worker role: A worker role is a role that is useful for generalized development, and may perform background processing for a web role.
A service must include at least one role of either type, but may consist of any number of web roles or worker roles.
Role Network Communication|
A web role may define a single HTTP endpoint and a single HTTPS endpoint for external clients. A worker role may define up to five external endpoints using HTTP, HTTPS, or TCP. Each external endpoint defined for a role must listen on a unique port.
Web roles may communicate with other roles in a service via a single internal HTTP endpoint. Worker roles may define internal endpoints for HTTP or TCP.
Both web and worker roles can make outbound connections to Internet resources via HTTP or HTTPS and via Microsoft .NET APIs for TCP/IP sockets.
So we can have a ASP.NET front end application hosted on a VM which is a web role and a WCF Service hosted VM which is a worker role and the following design patterns can be applied.
Session Facade
Worker Role VM as a facade is used to encapsulate the complexity of interactions between the business objects participating in a workflow. The Session Facade manages the business objects, and provides a uniform coarse-grained service access layer to clients.
The below diagram shows the implementation of Session Façade pattern in Windows Azure.

Business Delegate / Service Locator
The Business Delegate reduces coupling between presentation-tier clients and business services. The Business Delegate hides the underlying implementation details of the business service, such as lookup and access details of the Azure / Worker role architecture.
Service Locator object abstracts server lookup, and instance creation. Multiple clients can reuse the Service Locator object to reduce code complexity, provide a single point of control, and improve performance by providing a caching facility.
These two patterns together provide valuable support for Dynamic Elasticity and Load Balancing in a cloud environment. We can have logic in these roles (Business Delegate, Service Locator) such that the Virtual Machines with the least load are selected for Service and providing higher scalability.

Typical Activities that can be loaded to a Business Delegate Worker Role are:
- Monitoring Load Metrics using APIs for all the other Worker Role VMs
- Gather and Persist Metrics
- Rule Based Scaling
- Adding and Removing Instances
- Maintain and Evaluate Business Rules for Load Balancing
- Auto Scaling
- Health Monitoring
- Abstract VM migration details from Web Roles
Other Patterns
Windows Azure's coarse grained, asynchronous architecture of Web Roles and Worker Roles facilitates several other common design patterns mentioned below, which makes this a robust enterprise development platform and not just a Infrastructure Virtualization Enabler.
- Transfer Object Assembler
- Value List Handler
- Transfer Object
- Data Access Object
- Model View Controller Architecture
- Front controller
- Dispatcher View
Summary
Design patterns help in modularizing software development and deployment process , so that the building blocks can be developed independently and yet tied together without much tight coupling between them. Utilizing them for the Windows Azure development will compliment the benefits already provided by the Cloud platform.
Published November 29, 2010 Reads 8,473
Copyright © 2010 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Srinivasan Sundara Rajan
Srinivasan Sundara Rajan (Also Known As Sundar) Is A Enterprise Technology Enabler for realizing business capabilities. His primary focus is enabling Agile Enterprises by facilitating the adoption of Every Thing As A Service Model with particular concentration on BpaaS (Business Process As A Service). He also helps enterprises in getting meaningful insights from their structured and unstructured and real time data sources. All the views expressed are Srinivasan's independent analysis of industry and solutions and need not necessarily be of his current or past organizations. Srinivasan would like to thank every one who augmented his Architectural skills with Analytical ideas.
- Cloud People: A Who's Who of Cloud Computing
- Cloud Expo New York Speaker Profile: Dave Linthicum – Cloud Technology Partners
- Cloud Expo New York Speaker Profile: Jill T. Singer – Federal CIO Emeritus
- New Relic Q1 2013 Blazes Past Growth Targets and Reaches 40,000 Active Customer Accounts
- CollabNet and UC4 Announce General Availability of Joint Enterprise DevOps Platform
- How Can Green Web Hosting Benefit Your Business?
- Big Data Isn’t About the Database, It’s About the Application
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- BEA Updates WebLogic SOA Portal for Web 2.0 Era
- UNIT4 Business Software: Three Retail Accounting Tips to Help Retailers Leverage the Cloud and Back Office Systems
- Cloud Expo NY: Best Practices for Architecting Your Cloud Infrastructure
- The Rise of the Thin Client
- Cloud People: A Who's Who of Cloud Computing
- Cloud Expo New York Speaker Profile: Dave Linthicum – Cloud Technology Partners
- Cloud Expo New York Speaker Profile: Jill T. Singer – Federal CIO Emeritus
- Enterasys Spotlights SDN's Impact on Traditional Networking in Upcoming Webinar
- New Relic Q1 2013 Blazes Past Growth Targets and Reaches 40,000 Active Customer Accounts
- CollabNet and UC4 Announce General Availability of Joint Enterprise DevOps Platform
- How Can Green Web Hosting Benefit Your Business?
- Big Data Isn’t About the Database, It’s About the Application
- Upcoming Bloomberg BNA Webinar Focuses on COPPA Compliance
- NASA's Twitter Account Wins Back-To-Back Shorty Awards
- Cloud Expo New York: Basics of SSD Technology and Its Use in Cloud
- Session Topics: 12th Cloud Expo / Cloud Expo New York
- The Top 150 Players in Cloud Computing
- Who Are The All-Time Heroes of i-Technology?
- Where Are RIA Technologies Headed in 2008?
- Success, Arrogance, Rise and Fall
- AJAX World RIA Conference & Expo Kicks Off in New York City
- Personal Branding Checklist
- The Top 250 Players in the Cloud Computing Ecosystem
- i-Technology Viewpoint: Attack of the Blogs
- Exclusive Q&A with Jeff Haynie, Co-Founder & CEO, Appcelerator
- Web 2.0 News and Wrapping Up "Real-World AJAX" Seminar
- Passing Parameters to Flex That Works
- i-Technology Viewpoint: It's Time to Take the Quotation Marks Off "Web 2.0"























