golang rpc和http长连接的性能比较
8.1 Persistent Connections
8.1.1 Purpose
...
Persistent HTTP connections have a number of advantages:
...
- HTTP requests and responses can be pipelined on a connection.
Pipelining allows a client to make multiple requests without
waiting for each response, allowing a single TCP connection to
be used much more efficiently, with much lower elapsed time.
...
虽然Http1.1协议规定客户端可以在长连接中,无需等待服务器响应,复用连接通道连续发送多个请求以提高效率
8.1.2.2 Pipelining
A client that supports persistent connections MAY "pipeline" its
requests (i.e., send multiple requests without waiting for each
response). A server MUST send its responses to those requests in the
same order that the requests were received.
从pipeling的要求来看