Windows Azure Programming Patterns for Start-ups by Unknown

Windows Azure Programming Patterns for Start-ups by Unknown

Author:Unknown
Language: eng
Format: epub
Publisher: Packt Publishing


Caching capabilities

Both the shared and dedicated caching offer a rich feature set. The following table depicts this:

Feature

Explanation

ASP.NET 4.0 caching providers

When you build ASP.NET 4.0 applications and deploy them on Windows Azure, the platform will install caching providers for them. This enables your ASP.NET 4.0 applications to use caching easily.

Programming model

You can use the Microsoft.ApplicationServer.Caching namespace to perform CRUD operations on your cache. The application using the cache is responsible for populating and reloading the cache, as the programming model is based on the cache-aside pattern. This means that initially the cache is empty and will be populated during the lifetime of the application. The application checks whether the desired data is present. If not, the application reads it from (for example) a database and inserts it into the cache.

The caching mechanism deployed on one of your roles, whether dedicated or not, lives up to the high availability of Windows Azure. It saves copies of your items in cache, in case a role instance goes down.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.