Thursday September 3rd

Tuesday September 1st

Monday August 31st

Speed Up Your Site! 8 ASP.NET Performance Tips

Sample chapter from the book "The ASP.NET 2.0 Anthology". Many nice tricks to improve the performance of you site/app.

4 comments

Check out page 5 (http://www.sitepoint.com/article/aspnet-performance-tips/5) - I mentioned Gavin's Reluctant Cache Pattern, which is used on DotNetKicks.

Thanks for mentioning the pattern Jon, I guess I'll have to add it back into DNK (it was removed just before opening the source).

The Reluctant Cache Pattern is susceptible to stampeding requests, especially if retrieving the data takes a long time.

I'd never use the ASP.NET cache anyhow. A distributed cache with a near/far cache mechanism makes the RCP irrelevant.

The session viewstate example is hopelessly useless. ASP.NET 2.0 comes with a SessionPageStatePersister type. And there's way easier and much better ways to override the default page viewstate persister than the terribly outdated example given.

@foobar: regarding "And there's way easier and much better ways to override the default page viewstate persister than the terribly outdated example given."
I don't agree on your assessment (if only the vehemence). The .NET 2.0 options (including SessionPageStatePersister) have their pitfalls as well.
See http://ajdotnet.wordpress.com/2007/03/17/get-view-state-off-__viewstate/

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network