AlgoViz

Multiplexing, pools and HTTP latency

medium 7 min

A client may spend part of its deadline waiting for a connection or stream before sending a byte.

Where it shows up

The same pattern appears across everyday software.

  • A pool queue mistaken for server latency

    After introducing a streaming response, short requests slow down. Application traces at the origin stay fast. Instrument pool acquisition, connection setup and response time separately. A few long-lived calls can occupy all available slots. Raising the limit moves load downstream, so measure origin headroom or reserve separate capacity for streaming traffic.

  • Verifying the intervention

    Separate the traffic classes or right-size the pool. Verify client and origin latency together. If leases arrive promptly, instrument DNS, handshake and server work separately and compare cold versus reused connections.