Research and Discussion on optimizing ASP. NET application performance

Source: Internet
Author: User
Tags website performance

Abstract This article discusses how to improve the performance of ASP. NET applications from the aspects of pages, data access, and string operations, and provides several testing tools to detect the performance of ASP. NET websites.
Keywords ASP. NET application performance optimization
The website performance is very important for ASP. NET program developers. Although a good website has beautiful page design and perfect service functions, there is a long delay in opening the webpage, and users will end up unable to bear it. Especially for large e-commerce websites, tens of thousands of users access the website at the same time every second. Without good website performance, the website cannot meet huge demands.
ASP. NET, as a new generation of dynamic web page generation system, has essentially improved the platform performance compared with the original ASP. However, we need to develop professional, production-compliant, and user-friendly web applications on this basis, developers also need to optimize pages, data access, string processing, and other aspects from the programming perspective to improve the overall performance of the website.
This article will mainly discuss several performance optimization methods and precautions related to ASP. NET.
Page Performance Optimization
1. select an appropriate session Status
HTTP is a stateless communication protocol that cannot record and identify requests from different clients, however, in actual applications, the system maintains session status information between different requests from the client. ASP. NET solves this problem by storing session status information in processes, status servers, or SQL Server databases.
Saving session status information in the memory of the WEB server has the best performance and is fast, but it lacks the ability to span multiple servers. To maintain session information between multiple WEB servers, you can use the status server for storage. This method improves system scalability and reliability by deploying applications on multiple servers, however, to reduce performance costs. For extremely important session information, you need to use the SQL Server storage method to avoid loss of important session information, but the resulting workload is much larger than the previous two.
If you do not consider the retention of status information and the sharing of multiple servers, you should try to save it in the process of the server to get the best performance.
You can use the web. config file to store session status information:

Related Article

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.