This blog has moved to http://blogs.msdn.com/b/appfabric please update your links!
Windows Azure AppFabric Caching will be released to production at the end of April 2011. The CTP of the Caching service has been available for trial since October 2010.
Windows Azure AppFabric Caching is an explicit, in-memory, distributed caching service that:
This service is an extension of Windows Server AppFabric Caching to the cloud. Windows Azure AppFabric Caching (similar to Windows Server AppFabric Caching) can be used in multiple scenarios to cache different types of data:
Using Windows Azure AppFabric Caching for the above scenarios, developers can very easily build highly performing applications and also make sure that their customers always have access to their session data.
This service is closely integrated with ASP.Net (AppFabric Caching can be used for caching ASP.Net’s SessionState as well as Output data through simple configuration changes). It also uses the AppFabric Access Control service for authentication.
Let us look at the capabilities of this service at a high level:
//create DataCacheFactory based on config file var dcf = new DataCacheFactory(); //get the default cache var cache = dcf.GetDefaultCache(); //Add an item called "Test" - throws if exists cache.Add("Test", new Data {TheData = "Test" }); //Put an item called "Test2" - overwrites if exists cache.Put("Test2", new Data { TheData = "Test2" }); //Get "Test3" - add if not in cache (cache-aside) var test3 = cache.Get("Test3") as Data;
//create DataCacheFactory based on config file
var dcf = new DataCacheFactory();
//get the default cache
var cache = dcf.GetDefaultCache();
//Add an item called "Test" - throws if exists
cache.Add("Test", new Data {TheData = "Test" });
//Put an item called "Test2" - overwrites if exists
cache.Put("Test2", new Data { TheData = "Test2" });
//Get "Test3" - add if not in cache (cache-aside)
var test3 = cache.Get("Test3") as Data;
Let us look at how users can get a cache and use it in their Windows Azure application:
During provisioning, users can also select the size of the cache they need. There are multiple sizes available for both CTP and production release:
CTP has two size options - 128MB, 256MB
Production release will have more options - 128MB, 256MB , 512MB, 1GB, 2GB and 4GB
Users can upgrade/downgrade between these sizes at any time without incurring any downtime for the application. The usage metrics for the cache in the AppFabric portal can help users track their cache usage and identify the size that is best suited for the application’s needs.
As we discussed in this blog post today, with the close integration with ASP.Net, simple, easy to use APIs and parity with the Windows Server AppFabric Caching, we showed how users can use Windows Azure AppFabric Caching to easily build highly performant Windows Azure and SQL Azure applications.
Learn more about Windows Server AppFabric Caching here.
Learn more about Windows Azure AppFabric Caching here.
Tutorials and hands on labs for Windows Azure AppFabric Caching can be downloaded from here.
More information about Windows Azure can be found here.
Please provide feedback and let us know what you think through our Windows Azure AppFabric CTP Forum.
The Windows Azure AppFabric Caching Team.
Yay - I am glad to see this finally moving to production!
Do you have *any* idea on what the pricing structure will be? Is it based on size of the cache? hits/traffic?
Also - is the 4GB a hard limit? Let's say I needed 32 GB?
Thank you so much!
Distributed caching is great news for Azure! Any hint about the pricing model behind this new service?
We will announce the pricing structure when the service goes live really soon. Please read our detailed FAQs regarding the size limit question and other related questions: msdn.microsoft.com/.../gg602420.aspx