Web back-end server optimization

Source: Internet
Author: User


1,1. There is no need to optimize a page template, these are some very mature technology, even without greeting the easy 10% performance. These 10% accounted for only 0.5% of the total page run. Very little, equal to the 4 lanes in the previous sample 8 lanes of fools, we do not go to act as fools.

2. Database connection: Use connection pooling to reduce the number of connections; repeated database queries: Use caching to avoid repeated database queries , slow queries: Use indexes to increase query speed, replace subqueries with connection queries, and more.

3. static files and dynamic pages are handled separately. cluster of application servers. a cluster of databases. Web site Optimization Trilogy: Application optimization, System structure optimization, network optimization.

4, front-end optimization reference: Http://www.csdn.net/article/2013-09-23/2817020-web-performance-optimization

avoid css @import,Avoid using document.write. merging multiple external CSS files,merge multiple external JavaScript files. using CSS sprites to integrate images,delay the loading of JavaScript,Enable compression/GZIP,embed the small CSS and JavaScript code in the HTML,use browser caching. compress the CSS code. try to reduce the number of DNS queries and minimize redirects. the style label and style sheet calling code should be placed in front of the JavaScript code to avoid javascripts blocking rendering. reduce the original image


Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

Web back-end server optimization

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.