Building Windows Azure Applications with the Caching ServiceVersion: 1.2 DescriptionIn this lab, learn how to use the Windows Azure Caching service for both your ASP.NET session state and to cache data from your data-tier. You will see how the Caching service provides your application with a cache that provides low latency and high throughput without having to configure, deploy, or manage the service. OverviewThe Windows Azure Caching service provides a distributed, in-memory cache for your applications. In this lab, you will learn how to use the Windows Azure Caching service for both your ASP.NET session state and to cache data from your data-tier. You will see how the Windows Azure Caching service provides your application with a cache that provides low latency and high throughput without having to configure, deploy, or manage the service. ObjectivesIn this hands-on lab, you will learn how to:
During this lab, you will explore how to use these features in a simple ASP.NET MVC application. PrerequisitesThe following is required to complete this hands-on lab:
Note: This hands-on lab has been designed to use the latest release of the Windows Azure Tools for Visual Studio 2010 (version 1.5) and the new Windows Azure Management Portal experience. SetupIn order to execute the exercises in this hands-on lab you need to set up your environment.
Note: Make sure you have checked all the dependencies for this lab before running the setup. Note: This lab requires a SQL Azure database to start. To build the Northwind2 database automatically, the Setup.cmd file will prompt to you with your SQL Azure account information. Remember to update the NorthwingEntities connection string in the application’s configuration file to point to your database for each solution. Note: Remember to configure the firewall setting your SQL Azure account to allow you to specify a list of IP addresses that can access your SQL Azure Server. The firewall will deny all connections by default, so be sure to configure your allow list so you can connect to the database. Changes to your firewall settings can take a few moments to become effective. For additional information on how to prepare your SQL Azure account, refer to the exercise 1 of the Introduction to SQL Azure lab in the training kit.
Figure 1 SQL Azure database setup Using the Code SnippetsThroughout the lab document, you will be instructed to insert code blocks. For your convenience, most of that code is provided as Visual Studio Code Snippets, which you can use from within Visual Studio 2010 to avoid having to add it manually. If you are not familiar with the Visual Studio Code Snippets, and want to learn how to use them, you can refer to the Assets\Setup.docx document, which contains a section describing how to use them. ExercisesThis hands-on lab includes the following exercises:
Estimated time to complete this lab: 60 minutes. Note: When you first start Visual Studio, you must select one of the predefined settings collections. Every predefined collection is designed to match a particular development style and determines window layouts, editor behavior, IntelliSense code snippets, and dialog box options. The procedures in this lab describe the actions necessary to accomplish a given task in Visual Studio when using the General Development Settings collection. If you choose a different settings collection for your development environment, there may be differences in these procedures that you need to take into account. |
.png)