Document directory
- Part 1 client
- Part 2 Server
- Part 3 Database
- Part 4 distributed cache
- Part 5 Design Model
Part 1 client
1. Compress js and css and put the js before
2. Merge the js/css files on a page and compress the transmission (SquishIt) related blog posts.
3. ajax technology applications. ajax can achieve precise and quantitative requests and reduce unnecessary and repeated requests.
4. Page compression transmission technology (compressing page data. IIS supports gzip compression)
5. uniformly place js/css images on a single server.
6. Client Cache Technology
6.1 StatusCodeResponse. statusCode = 304; this code tells the browser that the requested page has not changed and can be retrieved from its own cache; we need to pay attention to the loss of the cached page. however, the Last-Modified request header setting scheme seems to be unavailable in IE6 7. because the request header is set to Last-Modified, the data value of If-Modified-Since cannot be obtained on the server. Similarly, Etag/If-None-Match cannot be used. therefore, if you want to use this scheme, you must use other comparisons to obtain the expiration time.6.2 set the gtm value of ExpiresString time = DateTime. now. addSeconds (10 ). toUniversalTime (). toString ("r"); Response. addHeader ("Expires", time); note that this method is only valid for the browser press Enter.6.3 Cache-Control: Set max-AgeResponse. AddHeader ("Cache-Control", "max-age = 10"); note that this method is only valid for the browser's carriage return.
Part 2 Server 1. Algorithm Optimization for common access methods.
2. cache frequently accessed resources.
3.
Part 3 Database
1. properly establish Indexes
2. read/write splitting
3. Table splitting
Part 4 distributed cache
ASP. NET uses Memcached distributed sessions to improve performance
Part 5 Design Model
AngularJs learning notes-Forms
About the architecture of high-performance and high-concurrency websites with tens of millions of PVS/IP addresses
OpenResty (also known as ngx_openresty) is a full-featured Web application server. It packs the core of the standard [[[Nginx] and many commonly used [[third-party modules | modules.
~ OpenResty aggregates a variety of well-designed Nginx modules,
So as to effectively convert Nginx into a powerful Web application server,
In this way, Web developers can use the Lua script language to mobilize various C and Lua modules supported by Nginx,
Quickly constructs an ultra-high-performance Web application system capable of handling 10 K + concurrent connection responses.