Summary of Web server performance improvement

Source: Internet
Author: User

Abstract:

Early Years fromProgramAt the beginning, the staff came into contact with web development and had deep feelings for Web servers. But some years later, I started to play with the architecture, but I found that the architecture products have greedy Requirements for the performance of web servers, just as the computer never meets the memory requirements. I always hope that the Web server is a super powerful giant, but this kind of hope is greedy. So let's look at it and make a summary of the Web server performance improvement, we hope to improve the web service performance in the following ways.

 

Body:

  1. Improve the configuration of the Web server itself.

    This is the simplest and most direct performance improvement and the most silly hardware upgrade to Improve the Performance of web servers.

     

  2. Increase network bandwidth.

    Since we are talking about Web servers, network data transmission is inevitable. It is not enough to upgrade the CPU and memory. High-speed broadband is also important for improving the performance of web servers.

     

  3. Web servers work in parallel.

    Distributed architecture is becoming a better architecture for modern software applications. Like the familiar cloud computing, it is actually a distributed computing. Therefore, the high-load web site uses the distributed structure of multiple Web servers to greatly improve the performance. To allow the Web server to work in parallel, there are generally two types. One is that the content of the web server in different regions is identical, and the visitor's IP address is used to determine the target server of the visitor. It seems that Google has a lot of Google servers around the world. The other is of course the content is different, that is, the functions and roles are different. For example, one provides dynamic pages, one provides static pages, and the other processes data. This is also common, for example, some enterprises tend to switch the database server to another Web Service server dedicated to data processing to reduce the load on one server.

     

  4. Improve the Performance of web servers from Server Load balancer.

    Some Web servers have massive traffic. Without sufficient throughput and network data processing capabilities, the average server cannot afford it. The preceding method can also be used to solve the problem, but this article mainly focuses on Server Load balancer to solve network congestion and provides the principle of proximity to services to achieve geographic location independence. for Google, do you think Google is slower? That's because SLB is definitely handled. Multiple servers can be used to share heavy computing and I/O operations to eliminate network bottlenecks, increase throughput, and improve performance.

     

  5. Web switch

    Some network devices are used only in large networks. I'm afraid I can only attribute it to hardware upgrade.

     

  6. Cache

    The cache is often used in computers, so the Web can also be used. Cache frequently accessed and used data to the client. The next access is directly obtained from the local database without frequent requests from the server, which effectively improves the access speed, it also reduces the traffic for frequent access. Accessing the Web server is nothing more than a user request or a server response. If there is some duplicate data, we do not need to go to the server for each operation. Cache, which is closely related to architects and developers. If your web application is well written or structured, the performance of a Web application is greatly improved.

     

     

Postscript:

The above is a simple summary. If there are any mistakes or omissions, please refer to the following post. In fact, the B/S system has more advantages than the old C/S system. In addition, the current B/S system interface is not inferior to C/S, therefore, if you can optimize the performance of web servers, it is a very valuable research work.

 

Http://www.zivsoft.com/show.asp? Id = 56

 

Reprinted, please indicate the author and Source

http://www.zivsoft.com/

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.