Upload
gibraltar-software
View
1.643
Download
1
Embed Size (px)
DESCRIPTION
Forget throwing massive hardware at your web site, see how you can scale up through intelligent use of caching. Using Aspect Oriented Programming (AOP) you can inject caching into your existing application to help it respond better to bursts of load, startup time, and many other common scaling problems.
Citation preview
©
e S
y m
m e
t r
i
x
Easy Scaling with AppFabric Cache and AOP
©
e S
y m
m e
t r
i
x
What It Takes
• Microsoft AppFabric Cache– Licensed with Windows Server 2008 & later
• PostSharp Community Edition– Free version from www.SharpCrafters.com
• Gibraltar Analyst: Optional for monitoring– Our product, not required for anything you see
today.
©
e S
y m
m e
t r
i
x
Why Caching?
• Apps ask a lot of repeating questions.– Stateless applications even more so
• Answers don’t change often• Authoritative information is expensive• Loading the world is impractical
©
e S
y m
m e
t r
i
x
Out of the Box ASP.NET Caches
• System.Web.Caching – General Purpose– Use AppFabric as a “drop in” replacement
• Response.Cache a.k.a. Output Cache– You still want this. – If you’re not using it already, do this first.
©
e S
y m
m e
t r
i
x
Caches Everywhere
©
e S
y m
m e
t r
i
x
Integrating the Cache
• Explicit Caching• Cache Aside Pattern
Web Server Database ServerBrowser
AppFabric Cache Server
©
e S
y m
m e
t r
i
x
Basic Cache Operations Demo
©
e S
y m
m e
t r
i
x
Unique AppFabric Coolness
• Sharable within an Enterprise– Share transient state, like shopping carts &
sessions• Massive Scale Up• Rent it from Azure
©
e S
y m
m e
t r
i
x
Go Forward and Scale!
• Know your apps real world performance• Find opportunities to reuse answers from any
operation with caching• Reconsider use of heavy persistence• Optimize for the Slashdot Effect
©
e S
y m
m e
t r
i
x
Cachingdon’t fix stupid
©
e S
y m
m e
t r
i
x
Additional Information:
Websites– www.GibraltarSoftware.com– www.SharpCrafters.com– msdn.microsoft.com/en-us/windowsserver
/ee695849.aspx
Follow Up– [email protected]– Twitter: kendallmiller