Multiplexing, pools and HTTP latency 00:00:01 A pool queue mistaken for server latency The first live stream is a hit. Suddenly even a tiny profile read takes a quarter second, although the profile server finishes its own work promptly. Imani puts a stopwatch in the client before a request acquires a slot. The ninety-fifth percentile for acquiring a slot goes from three milliseconds to two hundred forty. A stream can occupy capacity for its whole lifetime. A request waiting for permission to start makes no mark in the origin's execution trace yet. A client may spend part of its deadline waiting for a connection or stream before sending a byte. HTTP version one point one pools reuse connections, while HTTP version two multiplexes streams on one TCP connection. 00:00:43 Draw the wait before the origin sees a request TCP delivers an ordered byte stream, so missing bytes can delay multiple streams. QUIC separates stream delivery while streams still share path capacity. This client opens reusable connections up to a configured capacity. A request checks out an available connection or stream. Otherwise its waiting time accumulates here. The origin processes the request after it receives it. Return a usable connection on every exit path so the next waiting request can proceed. 00:01:13 Bound the long-lived class Could simply doubling the client pool make the short reads faster and still harm this service? Yes. It can move the queue to an origin with too little spare capacity. Measure stream occupancy, available slots and origin headroom together. Try reserved capacity for short calls, then check both classes under the same mix. If leases arrive promptly, instrument DNS, handshake and server work separately and compare cold versus reused connections. 00:01:44 Restore short-call admission The slot-acquisition tail falls to six milliseconds. Persistent HTTP version one point one connections avoid repeated setup. Pipelined responses retain ordering constraints. Multiple connections can provide concurrency at the cost of more sockets and handshakes. Imani leaves a separate timer on response processing. The interval before a request is sent belongs in the customer's latency budget too.