Core elements of a large web site: 1, performance 2, availability 3, Scalability 4, scalability 5, security
Website performance optimization: Web front-end 1, reduce HTTP request 2, use browser cache 3, enable compression 4, CSS top, JS put the bottom 5, CDN Acceleration 6, Reverse proxy (squid, varianish) 7, DNS dynamic resolution
Server 1, distributed Cache 2, asynchronous operation 3, using the cluster
http:1.1 1, persistent connection to support reuse of 2, chunked transfer encoding to support streaming response 3, request pipeline to support parallel request processing 4, byte service to support range-based resource requests
5, improve the better caching mechanism
2.0 1, the use of binary sub-frame layer using binary encoding 2, can send multiple requests in parallel, only one TCP link parallel to the corresponding multiple requests (through the preceding binary sub-frame implementation, the corresponding data does not depend on each other)
3, the server pushes, can push the additional resources to the customer service side 4, the first compression, does not transmit the same header saves the byte
Large Web site architecture