1. Hardware upgrade An ordinary P4 server can generally support up to 100,000 independent IPs per day. If the traffic is greater than this, a higher-performance dedicated server must be configured first to solve the problem. Otherwise, no optimization can completely solve the performance problem. 2. Load Balancing It distributes requests to each server in the cluster based on a certain load strategy, allowing the entire server cluster to handle website requests. Companies with more money can buy hardware specifically responsible for load balancing (such as: F5), and the effect will definitely be very good. For most companies, they will choose a cheap and effective method to expand the architecture of the entire system to increase the server's throughput and processing power, as well as the carrying capacity.
3. Server Cluster Server clustering refers to the collection of N servers to provide the same service together, and they communicate with each other through the network. N servers can cooperate with each other and jointly bear the request pressure of a website. From the client's perspective, there is only one server. A cluster can use multiple computers to perform parallel computing to achieve very high computing speeds, and can also use multiple computers for backup, so that if any machine fails, the entire system can still operate normally. 4. Database read-write separation The basic principle is to let the master database handle transactional add, modify, and delete operations (INSERT, UPDATE, DELETE), while the slave database handles SELECT query operations. 5. Database table partitioning technology (vertical partitioning, horizontal partitioning) When a table has millions of data, it will take longer to query once. If there is a joint query, it is likely to fail there. The purpose of sharding is to reduce the burden on the database and shorten the query time. 6. Create corresponding indexes for the table Use indexes to quickly access specific information in a database table. 7. Static page The front desk implements a completely static ***, and there is no need to access the database at all. 8. Cache technology (MemCache, Redis) Caching technology is another solution, which is to store dynamic data in cache files, and dynamic web pages directly call these files without having to access the database. 9. Prohibit external hotlinking Hotlinking of images or files from external websites often brings a lot of load pressure, so external hotlinking of images or files to your own websites should be strictly restricted. 10. Control the download of large files Downloading large files will take up a lot of traffic, and for non-SCSI hard disks, downloading a large number of files will consume CPU, making the website responsive. Therefore, try not to provide large files over 2M for download. If you need to provide them, it is recommended to put the large files on another server. |
<<: Are there fake Gigabit routers? Have you ever avoided these manufacturers' pitfalls?
>>: What are the advantages of using wireless mesh networks in enterprises?
Sharktech is a long-established DC merchant in th...
Weak current people have one thing in common: mos...
[[437603]] If you follow current events, you’ve p...
[[360018]] Compared with China Mobile, China Tele...
[51CTO.com original article] Enterprise digital t...
[Shenzhen, May 19, 2020] Today, during Huawei'...
[[420519]] When we write a crawler, we may need t...
DesiVPS has released two promotional packages, wh...
[[415145]] Why do you want to do this? 1 What is ...
1. Introduction The solution is suitable for tech...
Wholesale data centers offer more control, while ...
[Editor's Recommendation] 5G security standar...
[[389300]] Not long ago, the market was hotly dis...
With the development of technologies such as 5G a...
RackNerd has released a special package for the 6...