Lax Notes

Why tail latency is a scheduling problem

November 18, 2026

Mean latency hides the shape of the distribution. When a request touches dozens of services, the slowest dependency sets the floor for the whole trace. The useful question is not "how fast is the average" but "what happens to the request that arrives behind a long-running batch job".

Three patterns show up repeatedly: request coalescing, deadline propagation, and admission control. Each trades a little throughput for a tighter tail. The failure mode is always the same โ€” the protection mechanism itself becomes the bottleneck under overload.

Measure the 99th percentile per hop, not just end to end. The hop with the worst tail is usually the one nobody instrumented.

Consistent hashing without the hand-waving

November 9, 2026

Virtual nodes make rebalancing smooth, but the number of vnodes is not a free parameter. Too few and a single departure shifts a large fraction of keys; too many and membership gossip dominates. A reasonable starting point is 100โ€“200 vnodes per physical node, then measure the movement during a rolling restart.

The awkward case is a node leaving during a write burst. Consistent hashing bounds the keys that move, not the in-flight requests that were already routed there. Pair it with a short drain window and a retry budget that does not amplify load.

Notes on QUIC loss recovery

October 27, 2026

QUIC's loss detection is deliberately conservative: a packet is declared lost after a packet threshold or a time threshold, whichever comes first. On a high-BDP path, the time threshold can fire before an ACK that was merely delayed. The result is a spurious retransmission that looks like congestion to the sender.

If you are tuning this, start with the ACK delay and the initial RTT estimate, not the congestion controller. Most of the anomalies we saw disappeared once delayed ACKs were bounded and the path RTT was measured at handshake time.