10 tips for writing high-performance Web applications

Source: Internet
Author: User

Author: Rob Howard
This article discusses
& #8226; common ASP. NET performance difficulties

& #8226; useful performance tips and tips for ASP. NET

& #8226; database usage suggestions in ASP. NET

& #8226; use ASP. NET for caching and background processing

This article uses the following technologies:
ASP. NET,. NET Framework, and IIS
Content on this page
Data Layer performance
Tip 1: return multiple result sets
Tip 2-paging data access
Tip 3-connection pool
Tip 4-ASP. NET cache API
Tip 5-cache per request
Tip 6-background processing
Tip 7-page output cache and proxy server
Tip 8-run IIS 6.0 (for Kernel Cache only)
Tip 9-use Gzip for compression
Tip 10-server control view status
The simplicity of using ASP. NET to write Web applications is unbelievable. Because it is so simple, many developers will not spend time designing the structure of their applications to achieve better performance. In this article, I will introduce 10 tips for writing high-performance Web applications. However, I will not limit these suggestions to ASP. NET applications, because these applications are only part of Web applications. This article does not serve as an authoritative guide to adjust the performance of Web applications-I am afraid this issue cannot be easily explained throughout this book. Please take this article as a good start point.
I used to like rock climbing before I became a workaholic. Before conducting any large-scale rock climbing activities, I will first carefully check the routes in the guide and read the suggestions made by previous visitors. However, no matter how good the guide is, you need a real rock climbing experience before you can try a particularly challenging climb. Similarly, you can only learn how to write high-performance Web applications when you are faced with performance problems or a high-throughput website.
My personal experience comes from ASP. NET department as the infrastructure program manager experience, during which I run and manage www. ASP.. NET helps design the structure of the Community Server. The Community Server is a few famous ASP.. NET applications (ASP. NET Forums ,. text and nGallery ). I'm sure some of the skills that have helped me in the past will certainly help you.
You should consider dividing your application into several logical layers. You may have heard of the term 3 (or n) physical architecture. These are usually well-defined architectures that physically separate functions between processes and/or hardware. When the system needs to be expanded, more hardware can be easily added. However, there will be a performance drop related to processes and Machine jumps, so we should avoid this. Therefore, if possible, try to run ASP. NET pages and related components in the same application.
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.