Two schematic request-reply ladders compare waiting after each command with sending a batch before collecting replies.

Pipeline the waits: schematic.

Measure the benefit of Redis pipelining

Pipelining reduces the waits between sending Redis commands, but its benefit must be measured for a particular workload. A remote synchronous loop may mostly wait for network latency; a local loop may spend more time in the client, scheduling, and socket I/O. Neither case justifies a universal promise of several-fold improvement. ...

January 20, 2028 · 6 min · XB Field Notes