massive scalability for asp.net you can afford
TRANSCRIPT
![Page 1: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/1.jpg)
©
e S
y m
m e
t r
i
x
Massive Scalabilty for ASP.NET you can Afford
Caching for Fun and Profit
![Page 2: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/2.jpg)
©
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: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/3.jpg)
©
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: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/4.jpg)
©
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: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/5.jpg)
©
e S
y m
m e
t r
i
x
Caches Everywhere
![Page 6: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/6.jpg)
©
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: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/7.jpg)
©
e S
y m
m e
t r
i
x
Basic Cache Operations Demo
![Page 8: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/8.jpg)
©
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: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/9.jpg)
©
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: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/10.jpg)
©
e S
y m
m e
t r
i
x
Cachingdon’t fix stupid
![Page 11: Massive scalability for ASP.NET you can afford](https://reader036.vdocument.in/reader036/viewer/2022083000/5565e298d8b42ae8488b4ecd/html5/thumbnails/11.jpg)
©
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