views:

137

answers:

4

Is there are a guide published by microsoft or somebody else about the best practices for creating scalable web applications? like patterns to use and how to do data access.

+3  A: 

The Microsoft Patterns & Practices group is a good one stop shopping ground for that.

Edit: Here is their guide specifically on Scalability and Performance. Chapter 6 includes information specific to ASP.NET Performance and Chapter 17 includes information about Tuning.

Nick
Specifically chapter 6 (http://msdn.microsoft.com/en-us/library/ms998549.aspx) and 17 (http://msdn.microsoft.com/en-us/library/ms998583.aspx) for ASP.Net.
adrianbanks
@adrianbanks - Edited the main answer with you specific links. Thanks.
Nick
+3  A: 

The best advice I can give is to do these three things (roughly in order):

  1. Avoid unnecessary postbacks
  2. Avoid excessive viewstate
  3. Spend your time optimizing your database
Joel Coehoorn
What about using linqdatasources to bind to controls, is that bad or good?
ryudice
Nothing wrong with it, as long you fit it in the points above: does it cause extra postbacks - does it cause viewstate (hint: viewstate is independent of data source), and can you optimize your db code when the time comes (my experience with linq is that you usually can).
Joel Coehoorn
A: 

This is an excellent article on the subject of scale: http://msdn.microsoft.com/en-us/library/bb924375.aspx Which basically discusses the issues of load balancing, session affinity and caching all of which become important in any scaling discussion. If you have a specific question after that, let us know.

nelsonwebs
A: 

I'd take a read through the MVC Storefront series. It's ASP.NET MVC based, but demonstrates a nice approach for creating a loosely-coupled, well architected website. You could easily apply most of the principles to a webforms site as necessary (though I'd recommend going with MVC if yo have the choice...)

Marcus