Easy Scaling with AppFabric Cache and AOP

11
© e S y m m e t r i x Easy Scaling with AppFabric Cache and AOP

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.

Transcript of Easy Scaling with AppFabric Cache and AOP

Page 1: Easy Scaling with AppFabric Cache and AOP

©

e S

y m

m e

t r

i

x

Easy Scaling with AppFabric Cache and AOP

Page 2: 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.

Page 3: Easy Scaling with AppFabric Cache and AOP

©

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

Page 4: Easy Scaling with AppFabric Cache and AOP

©

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.

Page 5: Easy Scaling with AppFabric Cache and AOP

©

e S

y m

m e

t r

i

x

Caches Everywhere

Page 6: Easy Scaling with AppFabric Cache and AOP

©

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

Page 7: Easy Scaling with AppFabric Cache and AOP

©

e S

y m

m e

t r

i

x

Basic Cache Operations Demo

Page 8: Easy Scaling with AppFabric Cache and AOP

©

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

Page 9: Easy Scaling with AppFabric Cache and AOP

©

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

Page 10: Easy Scaling with AppFabric Cache and AOP

©

e S

y m

m e

t r

i

x

Cachingdon’t fix stupid

Page 11: Easy Scaling with AppFabric Cache and AOP

©

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