HTTP Persistent Connections and HttpClient Connection Pool

HTTP Persistent Connections and HttpClient Connection Pool

Background The HTTP protocol is a stateless protocol, meaning each request is independent of others. Therefore, its initial implementation was to open a TCP socket connection for each HTTP request, which would be closed after the interaction was complete. HTTP is a full-duplex protocol, so establishing and closing connections requires three-way handshakes and four-way handshakes. … Read more

Understanding TCP, HTTP, Socket, and Socket Connection Pool

Understanding TCP, HTTP, Socket, and Socket Connection Pool

Author: Shulan Technology Source: www.jianshu.com/p/e47a766e03da Introduction: As a developer, we often hear terms like HTTP protocol, TCP/IP protocol, UDP protocol, Socket, Socket long connection, Socket connection pool, etc. However, not everyone can clearly understand their relationships, differences, and principles. This article will start from the basics of network protocols and explain the relationship between them … Read more