Asp. NET performance improvement tips pipeline and process optimization

Source: Internet
Author: User

ASP.net 2.0 contains a lot of secrets that, when you find it, can bring greater performance and extensibility to your program. For example, understanding the secret bottlenecks hidden in the membership and profile provider providers makes it easy to troubleshoot validation problems and make authorization operations faster.

In addition, the ASP.net HTTP pipeline blocks to avoid the necessary code to execute on each request. Not only that, the ASP.net worker process can drive its limitations and achieve higher performance. Page fragmentation in the browser-side output cache (not on the server side) can significantly reduce the download time for visitors. The user interface to download according to the requirements can make your site to give people a fast and smooth feeling.

The final content transfer network and the proper use of HTTP cache headers can make your site surprisingly fast. In this article, you'll learn about these technologies that will enable your asp.net applications to achieve higher performance, better scalability, and can be implemented on any asp.net web site, especially those that apply ASP.net 2.0 membership and profile Provider's site.

Asp. NET pipeline optimization

Many asp.net in the request pipeline default httpmodules are used to intercept each request made by the client. For example, SessionStateModule intercepts each request, resolves the corresponding session cookie, and then loads the appropriate session in HttpContext. Real-time proof that not all modules are necessary.

For example, if you do not use the membership and profile provider providers, then you do not need to formsauthentication module. If you need to use Windows validation for your users, then you don't need to windowsauthentication. These modules in the pipeline only execute some unnecessary code each time the request arrives.

The default modules are defined in the Machine.config file (located in the $WINDOWS $\microsoft.net\framework\ $VERSION $\config directory).

   
    
   

  
   

  
   

  
   

  
   

  
   

  
    
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.