Overview of Caching in Windows Azure
Windows Azure Caching is a distributed in-memory caching technology. It is in-memory, because only the physical memory on the Caching servers is used to store items. This increases performance. It is distributed, because the memory of multiple machines can be used as a single unit.
There are two main ways that you can use Caching:
Caching (Preview) where Caching is deployed on web/worker roles of your application
Shared Caching where Caching is consumed as a managed service
|For a good overview of Windows Azure Caching and caching concepts, watch the following two TechEd 2012 talks.|
Caching (Preview) on Roles
Windows Azure Caching (Preview) allows you to host Caching within your Azure roles. This capability is also referred to as role-based Caching. There are two main deployment topologies for this type of 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 (Preview) FAQ.
|Caching (Preview) role-based Caching is not supported in production at this time.|
Windows Azure 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 FAQ.
In This Section
Differences Between Caching On-Premises and in the Cloud
Windows Azure Caching (Preview) FAQ
Windows Azure Shared Caching FAQ
|Windows Azure Caching features are a subset of the features of the on-premise caching solution of Windows Server AppFabric. For more information, see Differences Between Caching On-Premises and in the Cloud.|
|Windows Azure Caching is designed for Windows Azure applications hosted in the cloud. This architecture achieves the best throughput at the lowest latency. With Shared Caching, it is possible to test on-premises code that accesses a Windows Azure cache, but this design is not supported for production. On-premises applications can instead rely on an on-premises cache cluster that uses Windows Server AppFabric.|