fabric

Persistent Multiplexed Connections

A persistent multiplexed connection is a TCP connection that is kept open and allows bi-directional streaming exchange of requests and responses at any time. Unlike HTTP/1.1, there is no restriction to have only one request and one response for the lifetime of the connection. A multiplexed connection can transport multiple requests and responses at the same time, interwoven on the timeline, and out of order. HTTP/2 and gRPC are a multiplexed connection.

Three concurrent HTTP/1.1 requests utilize three TCP connections:

A multiplexed connection on the other hand can serve the three requests on a single TCP connection:

The benefits of a persistent multiplexed connection are: