Download presentation
Presentation is loading. Please wait.
Published byProsper Harris Modified over 6 years ago
1
Distributed Cache Dipl.-Ing. Damir Dobric Lead Architect daenet
Microsoft vTSP – Germany Technology Advisor in Business Platform Division – Microsoft Corp. Microsoft Most Valuable Professional
3
Application Architecture
FRONT END BROWSER RICH CLIENT … CLOUD T1 MIDDLE WARE SERVICES T2 DATA DATABASE T3
4
Latency Pyramid Memory Network Disk
Windows Azure AppFabric Caching (local cache) Lowest latency Network Windows Azure AppFabric Caching (distributed cache) Lower latency Disk Highest latency Storage
5
Distributed Caching Scenario
Database Web App 1 Web App 2 Web Service 1 Distributed In-Memory Cache Server Distributed In-Memory Cache Server Local Cache Local Cache Local Cache
6
High-Level Cache architecture
7
Cluster Configuration
AppFabric Caching Cache Client Client Config Cache Port TCP22233 Cache Host 1 Cache Host 2 Arbitration Port TCP22235 Cluster Port TCP22234 (live tick) PowerShell Administration Cluster Configuration Replication Port TCP22233
8
AppFabric Caching Cache Host 1 Cache Host 2 Default Cache Named Cache
Region 1 Region 2
9
Important Cache Features
Cache Nodes Cache Size Name TTL (time to live) Eviction LRU (last recently used) LFU (last frequently used) Notifications High Availability
10
High Avalability
11
Long mapping x1 y1 f : X -> Y x2 x3 y2 y3 t >> 0 xk yN
12
Multiple long mappings
f1 : X -> Y x1 y1 f1 f2 : X -> Y x2 x3 y2 y3 f2 fq xk yN fq : X -> Y tk >> 0, k={1, 2, .. q}
13
Cache Tagging X Table1 Table2 TableM Y y1 tag2 tag2 y3 y2 yN tag2 tag1
f1:=Select * from T1, T2,.. Table1 tag2 tag2 tag1 Table2 y2 y3 f2:=Select * from T3, T2,.. yN tag2 tag1 TableM
14
Cache Tagging Sample y1 DataCache cache = dcf.GetCache(CacheName);
List<DataCacheTag> tags = new List<DataCacheTag>(); tags.Add(new DataCacheTag(„f1")); tags.Add(new DataCacheTag(„f2")); DataCacheItemVersion ver = cache.Add(„Key", 123, tags); tag1 y1 tag2 tag2 tag1 y2 y3 yN tag2 tag1 cache.GetObjectsByTag(tags[0]) This is very fast!!
15
Precalculation of fk f1 : X -> Y slow background
cache.GetObjectsByTag(tags[f1]) fast on-demand cache.GetObjectsByTag(tags[f2]) fast
16
Demos Windows Server AppFabric Cache Windows Azure AppFabric Cache
Tagging Deployment Regions Emulator Notifications Cache Roles
18
07 Mai 14 Mai 24 Mai 04 June 11 June 18 June 25 June (double session)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.