Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Connection Pools and Why New Connections Are Expensive

A payment call from a Checkout test client took 61.7 ms. The same call, sent on a connection that was already open, took 20.3 ms. Nothing on the server changed between the two: the request, the reply, and the code were identical.

The extra 41 ms went to opening the connection. The client paid for a TCP handshake and a TLS handshake before it could send a single byte of the request, and the round trip to the server was 20 ms.

This page measures what a new connection costs, how a pool removes that cost, how large a pool needs to be, and how a pooled connection can fail.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content