개발지식/Network
High Performance Browser Networking
aiden.jo
2023. 6. 12. 23:02
High Performance Browser Networking
The "High Performance Browser Networking" aims to improve the loading speed of web pages.
Network Techniques to improve browser performance
- HTTP/2: a single connection can handle multiple requests and responses
- Caching: a technique of storing resources from servers in browser to reuse.
- DNS Prefetch : a technique to reduce the time for translating DNS in website to IP in advance.
ex.<link rel="dns-prefetch - Preconnect : a technique to reduce additional connection time by pre-establishing the necessary connections on a website.
- Preload : a technique to preload resources in advance such as CSS, IMG.
- Connection Pooling : a technique to reuse connections to reducing the time to make a new connection.
(백엔드 기술 - restTemplate, webClient, httpclient, retrofit, axios, ajax 또는 Database)
=> 어디에 쓰느냐에 따라 TCP pool과 DB pool 로의 구분이 다름)
HTTP Client Libraries
- RestTemplate : in Java, Blocking
- HttpClient : in Java 11, Blocking
- WebClient : in Java, Non-Blocking
- Retrofit : in Java, Blocking & Non-Blocking
- Axios : in javascript, Non-Blocking
- AJAX : in javascript, Non-Blocking