Over a million developers have joined DZone.

Windows Azure Learning Path Exercise 1: Use Windows Azure Caching for Session State

· Cloud Zone

Learn about the benefits and drawbacks of microservices with best practices for your own architecture, brought to you in partnership with Iron.io.

In this exercise, you will explore the use session state provider for Windows Azure Caching as the mechanism for out-of-process storage of session data to be useable in a web farm. For this purpose, you will use Azure Store - a sample shopping cart application implemented in MVC. Please make sure to Download Hands-on Lab Source Files before start of Exercise 1.

Follow the step by step instructions to complete the following tasks.

Task 1 – Running the Azure Store Sample Site in the Compute Emulator

In this task, you will run the Azure Store application in the compute emulator using the default session state provider; you will change that provider to take advantage of the Windows Azure Caching service later on.

Task 2 – Configuring Session State Using Windows Azure Caching

In this task, you will change the Session State provider to take advantage of the Windows Azure Cache as the storage mechanism.

Task 3 – Verification

In this task, you will verify the application by pressing F5 in Visual Studio 2010

The Cloud Zone is brought to you in partnership with Iron.io.  Learn about best practices and common pitfalls for working with Iron.io. Avoid the dead ends, and take the enlightened path.


Published at DZone with permission of Brian Prince , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}