Presentation is loading. Please wait.

Presentation is loading. Please wait.

Caching: How It Works and When You Should Use It Shy Cohen Principal, Shy Cohen Consulting AAP314.

Similar presentations


Presentation on theme: "Caching: How It Works and When You Should Use It Shy Cohen Principal, Shy Cohen Consulting AAP314."— Presentation transcript:

1 Caching: How It Works and When You Should Use It Shy Cohen Principal, Shy Cohen Consulting AAP314

2 2 Concepts Guidance

3 3 Not a new concept

4 4

5 5 Cache Speeds up the application Reduces database load Shared Cache V1V1V2V2 Update Same data across all servers Load Balancer High load on the database Long load time & delays Users see different data, depending on the server they get routed to!

6 6

7 Basic Concepts

8 CacheConcepts 8 Client’s View Cache Segment #3 Cache Segment #2 Cache Segment #1

9 CacheConcepts 9

10 10 Name Data Affinity Access Pattern Shared “Read- Heavy” Shared Read- Write User Specific Read- Write Reference Resource Activity

11 CacheGuidance Cache 11 User Settings Service Company Settings User Customization C1 U1 Caller C1+U1 U2 C1 C1+U2 Get Settings for User 1 of Company 1 Get Settings for User 2 of Company 1 C1+U1 C1+U2

12 CacheGuidance 12

13 CacheGuidance 13

14 CacheGuidance 14

15 CacheConcepts 15 Cache Service / Website Data Source Caller

16 CacheGuidance 16

17 CacheConcepts 17 Cache Cluster “default”“default”“Permissions”“Permissions” “Last Viewed Items” “Friends’ Purchases”

18 CacheConcepts 18

19

20 Auto Object Removal

21 CacheConcepts 21

22 22

23 Empty Space 23 Cached Data Empty Space 90% 70% Non Expired Objects Evicted Expired Objects Evicted Cached Data High Watermark Low Watermark Eviction can be turned off. Use with great care!

24 CacheGuidance 24

25 Local Cache

26 CacheConcepts 26 Cache Service / Website Data Source Caller

27 27

28 CacheGuidance 28

29 Concurrency

30 CacheConcepts 30

31 CacheGuidance 31

32 CacheConcepts 32

33 CacheGuidance 33

34 Advanced Concepts

35 35

36 CacheConcepts 36

37 CacheGuidance 37

38 CacheConcepts 38

39 39 Cache

40 CacheConcepts 40 Cache Provider

41 CacheGuidance 41 Resource

42 Implementing Caching

43 43

44 44

45 45

46 CacheGuidance 46

47 47 WhatIn-RoleDedicatedShared FeaturesFull Limited CostNo additionalPay for rolePay by memory ScalabilityWith app / tierSeparate Competition for local resources YesNo Memcached API compatible Yes No Provisioning and Administration Configuration Provision through portal ASP.NET CachingYes Expiration Policy None, Absolute, Sliding Window (from last access) Absolute (48hr) High AvailabilityYes No NotificationsYes No Disabling evictionYes No Regions and TagsYes No

48 48

49 CacheGuidance 49

50 CacheGuidance 50

51 CacheConcepts 51 <add name="SessionStoreProvider“ type="Microsoft.ApplicationServer.Caching.DataCacheSessionStoreProvider, Microsoft.ApplicationServer.Caching.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35“ cacheName=“MyCache"/>

52 CacheConcepts 52 <add name="DistributedCache" type="Microsoft.Web.DistributedCache.DistributedCacheOutputCacheProvider, Microsoft.Web.DistributedCache" cacheName="default" dataCacheClientName="default" />

53 Summary

54 54

55 55

56 AZR309 - Windows Azure Caching: New Capabilities in the Next Release

57 Connect. Share. Discuss. http://northamerica.msteched.com Learning Microsoft Certification & Training Resources www.microsoft.com/learning TechNet Resources for IT Professionals http://microsoft.com/technet Resources for Developers http://microsoft.com/msdn

58 Required Slide Complete an evaluation on CommNet and enter to win!

59

60

61


Download ppt "Caching: How It Works and When You Should Use It Shy Cohen Principal, Shy Cohen Consulting AAP314."

Similar presentations


Ads by Google