Optimization ideas for large-scale projects

Overview of large-scale project optimization--PHP analysis process

Optimization ideas for large-scale projects

Optimization

Consider each process of PHP parsing 1. The process of


client request to the web server may cause slow transmission due to different networks. Multi-line deployment can be used.


2. When the web server accepts the request execution efficiency and concurrency issues. You can choose to use load balancing and optimize the code in the project.


3. The execution efficiency and concurrency of mysql will also affect performance. Various mysql optimizations can be used to improve execution speed and mysql read-write separation can be used to relieve pressure

Optimize available technologies

1. Try to use smaller resource files in website development


2. Use compression technology (gzip)


3. Use cdn to accelerate resource files


4. Use caching technology (memory cache redis/memcache/ static page)


5. Optimize the database


6 , Website structure reconstruction adopts hierarchical model design,


7, use load balancing technology


8, use read-write separation or distributed technology for database


9, optimize related software configuration,


10, upgrade hardware (disk use solid state, use raid card)

Guess you like

Origin blog.csdn.net/weixin_43272542/article/details/113926935