Suggestions for improving the performance and scalability of Web websites

Source: Internet
Author: User

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.

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.