Introduction: This is a detailed page of several suggestions for improving the performance and scalability of Web websites. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 358851 'rolling = 'no'>
-
- Benchmark comparison (benchmarking );
-
- Multiple application services;
-
- Do not stay in the application service status;
-
- Stateless;
-
- Architecture Optimization;
-
- Cache content with a high click rate;
-
- Speak with measurement and detection data;
-
- Static web page;
-
- Weigh cache applications;
-
- Cache the entire page;
-
- Cache local pages;
-
- Cache complex data;
-
- Understand the MySQL Query Buffer;
-
- Copy database table read operations. Do not copy and write operations;
-
- Write operation partition table. But 96% of applications can ignore this;
-
- The Master-master architecture makes it easier to update the database structure online;
-
- Create a statistical database table instead of using count and group by queries at run time;
-
- GuaranteeCodeIdempotence. If the Code fails to run, it can be recovered at any time;
-
- Load data asynchronously and update data in batches;
- Do as much processing as possible in the application, rather than in the database;
-
- Stored procedures are dangerous;
-
- Enable log query;
-
- Different workloads use different MySQL instances;
-
- Configuration optimization help and query optimization;
-
- Careful consideration of persistent database connections;
-
- Do not over-use the database. It is difficult to expand the database;
-
- Use parallel processing;
-
- Records HTTP request logs;
-
- Lightweight tasks use lightweight processes;
-
- Establish an internal APIs for easy scaling;
-
- Automatic Error handling;
-
- Ensure that the service is always running;
-
- Balancing is the key to horizontal scaling;
-
- Redundancy is not a Server Load balancer, ensuring the load capacity of N + 1;
-
- Prepare a disaster recovery plan;
-
- Back up data;
-
- Make sure the system is easy to deploy;
-
- Everything can be done using scripts;
-
- Monitor and map everything;
-
- Each server runs a service;
-
- Do not replace hard disks with memory;
-
- Use memcached if the memory is sufficient );
-
- Use more memory to save CPU and IO overhead;
-
- Start the application service on the network;
-
- Use charts to speak;
-
- Use Content Delivery Network (CDN;
- Use yslow to locate client problems;
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/358851.html pageno: 1.