6 out of 9 rated this helpful - Rate this topic

Caching in Windows Azure

Windows Azure Caching allows you to host Caching within your Azure roles. This capability is also referred to as role-based Caching. This cache can be used by any roles within the same cloud service deployment.

Caching provides several benefits to application developers. Caching increases performance by temporarily storing information from other backend sources. High performance is achieved by maintaining this cache in-memory across multiple cache servers. For a Windows Azure solution, Caching can reduce the costs and increase the scalability of other storage services such as SQL Database or Azure storage. ASP.NET applications can use Caching for the common scenario of session state and output caching.

There are two main deployment topologies for Caching: dedicated and co-located. In the dedicated topology, you define a worker role that is dedicated to Caching. This means that all of the worker role's available memory is used for the Caching and operating overhead. In a co-located topology, you use a percentage of available memory on application roles for Caching. For example, you could assign 20% of the physical memory for Caching on each web role instance. In both cases, you only pay for the Compute services required for the running role instances. For more information, see Windows Azure Caching FAQ.

noteNote
The ability to host Caching on Windows Azure roles was officially released in the October 2012 release of the Windows Azure SDK. This is now a fully supported feature of Windows Azure Caching. To use Caching on roles, download the latest Windows Azure SDK and tools from the Windows Azure website.

Windows Azure Shared Caching is another option for using Caching in a Windows Azure application. Shared Caching is separate service where Caching is consumed as a managed service. Shared Caching enables you to register a cache through the Windows Azure Management Portal. Theses caches do not reside on your own roles. Instead, they reside on a group of servers in a multitenant environment. You can access your cache with a Service URL and Authentication token from the Management Portal. In this model, you pay for one of several cache offerings that vary in memory, bandwidth, transactions, and client connections. For more information, see Windows Azure Shared Caching.

TipTip
For a good overview of Windows Azure Caching and caching concepts, watch the following two TechEd 2012 talks.

In This Section

See Also


Build Date:

2012-11-01
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.