Title: ASP.NET applications scalability best practices guide
Tags: c#;.net;asp.net;scalability
Question: 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.


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


Avoid unnecessary postbacks
Avoid excessive viewstate
Spend your time optimizing your database


Comment for this answer: 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).
Comment for this answer: Coming back to this years later, I'll add: **4. Avoid unnecessary memory allocations.**
Comment for this answer: What about using linqdatasources to bind to controls, is that bad or good?

Here is another answer: 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.


Here is another answer: 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...)


Here is another answer: The Microsoft Patterns &amp; 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.

Comment for this answer: 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.
Comment for this answer: @adrianbanks - Edited the main answer with you specific links. Thanks.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 4, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2010:00:03/02/10', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<c#><.net><asp.net><scalability>', 'Title': 'ASP.NET applications scalability best practices guide', 'ViewCount': 3204, 'id': 2367027, 'user_AboutMe': '', 'user_AccountId': 47543.0, 'user_DisplayName': 'ryudice', 'user_Reputation': 35646.0, 'user_Views': 995.0, 'user_id': 140877.0}}