Users • Need to route users to same machine (i.e. sticky sessions) Web Tier • Each machine round trips for data • Some data might.

Download Report

Transcript Users • Need to route users to same machine (i.e. sticky sessions) Web Tier • Each machine round trips for data • Some data might.

Users
• Need to route users to same machine (i.e.
sticky sessions)
Web Tier
• Each machine round trips for data
• Some data might be expensive to retrieve
• Cached data is typically stored in the
memory of one (each) server
Database
• CPU and disk can get saturated due with an
increase traffic
WORKFLOW HOSTING
CACHING
High Availability
Scale Out
SERVICE HOSTING
Multi-Tenant
MONITORING
ACCESS
CONTROL
Management
Users
Web Tier
Caching
Tier
Database
• No stick load balancing needed – all servers have
copy of cached data
• Easy access to cache cluster
• Multiple machines means scale and potential for
high-availability
• More machines == more memory for cache
objects
• Reduces load on database
Remember – PowerShell can also be called from .NET Code!
//create DataCacheFactory based on config file
var dcf = new DataCacheFactory();
//get the cache named "TestCache"
var cache = dcf.GetCache("TestCache");
//Add an item called "Test" - throws if exists
cache.Add("Test", new Data { TheData = "Test" });
//Put an item called "Test2" - overwrites if exists
cache.Add("Test2", new Data {TheData = "Test2" });
//Get "Test3" - add if not in cache (cache-aside)
var test3 = cache.Get("Test3") as Data;
if (test3 == null)
{
test3 = new Data {TheData = "Test3" };
cache.Add("Test3", test3);
}
grant-cacheallowedclientaccount MyDomain\Machine1$
grant-cacheallowedclientaccount MyDomain\Jon
<sessionState mode="Custom" customProvider="SessionStoreProvider">
<providers>
<add name="SessionStoreProvider"
type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider,
Microsoft.ApplicationServer.Caching.Client, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" cacheName="BlueYonderSession"/>
</providers>
</sessionState>
www.Microsoft.com/WindowsAzure/AppFabric
http://msdn.microsoft.com/en-us/azure/netservices.aspx
http://blogs.msdn.com/b/netservices/
http://twitter.com/azure_appfabric
http://www.microsoft.com/biztalk/
http://msdn.microsoft.com/biztalk/
http://blogs.msdn.com/biztalk_server_team_blog
http://www.biztalkblogs.com/
www.appinfrastructure.com
http://www.microsoft.com/appfabric
http://msdn.microsoft.com/appfabric
www.microsoft.com/teched
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn
Sign up for Tech·Ed 2011 and save $500
starting June 8 – June 31st
http://northamerica.msteched.com/registration
You can also register at the
North America 2011 kiosk located at registration
Join us in Atlanta next year