The processing and solution of high concurrent and large traffic access of website

Source: Internet
Author: User

1. Hardware upgrade

Ordinary P4 server can generally support up to 100,000 independent IPs per day, if the traffic is larger than this, then you must first configure a more high-performance dedicated server to solve the problem, or how optimization can not completely solve the performance problem.

2. Load Balancing

It distributes requests to each server in the cluster based on a load strategy, allowing the entire server farm to process requests for the site.
The company is rich, can buy a special load balancing hardware (such as: F5), the effect will be very good. For most companies, an inexpensive and effective way to extend the architecture of the entire system to increase the throughput and processing power of the server, as well as the load capacity, is chosen.

3. Server cluster

A server cluster refers to the aggregation of n servers together for the same service, which communicates through the network. Let n servers collaborate with each other to host a Web site's request pressure.
The client looks like there is only one server. A cluster can use multiple computers for parallel computing to achieve high computational speed, or it can be backed up with multiple computers, so that any one machine breaks down the entire system or runs normally.

4. Database read/write separation

The basic principle is to have the primary database handle the transactional increment, change, delete (INSERT, UPDATE, delete), and the Select query operation from the database.

5. Database Sub-table technology (vertical segmentation, horizontal segmentation)

When a piece of data reaches millions of, you spend more time querying it, and if you have a joint query, you're likely to die there. The purpose of the sub-table is to reduce the burden on the database and shorten the query time.

6. Create the appropriate index for the table

Use an index to quickly access specific information in a database table.

7. Page Static

The front desk is the best to achieve complete static, without having to access the database at all.

8. Caching Technology (MemCache, Redis)

Caching technology is another solution, which is to store dynamic Data in a cache file that is called directly by Dynamic Web pages without having to access the database

9. Prohibit external hotlinking

External Web site pictures or file hotlinking often bring a lot of load pressure, so should strictly restrict the external to their own pictures or files hotlinking

10. Control the download of large files

Large file downloads can consume a lot of traffic, and for non-SCSI hard drives, a large number of file downloads can consume CPU, resulting in reduced responsiveness. Therefore, try not to provide more than 2M of large file download, if required to provide, it is recommended to put large files on another server.

Just saw a piece of high-concurrency thinking article, record, the article from the network

The processing and solution of high concurrent and large traffic access of website

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.