The Round Trip Is the Enemy: How One Connection Does a Million Ops
Here is a number that surprises people the first time they measure it: a client talking to a cache that can serve a key in two microseconds will often get only a few thousand operations per second out of a single connection. The server is barely awake. The network has bandwidth to spare. And yet the throughput is dismal, and no amount of server tuning moves it. The bottleneck is somewhere neither of those numbers describes.
The culprit is the round trip. If a client sends a request and then waits for the response before sending the next one, the connection spends almost all of its time in flight — the request crossing to the server, the response crossing back — and almost none of it doing work at either end. At a round-trip time of 200 microseconds, that waiting alone caps the connection at 5,000 operations per second, no matter how fast the store is, because the client issues exactly one request per round trip and the round trip is the clock. The server processes for 2 microseconds and idles for 198. The wire carries one small request, then falls silent for the return leg. Everyone is waiting for everyone else.
This is the single most common reason a fast store feels slow, and the fix is not a faster network or a bigger server. It is to stop waiting. Pipelining lets one connection keep many requests in flight at once, so the round trip stops being the clock and the server's actual processing rate takes over. This post is about why that works, why it is safe to do without tagging every request with an ID, and the one tradeoff it quietly makes.