SET counter 4, INCR and GET have known arguments and yield ordered replies True, 5 and bytes 5 in the source exercise. A plain pipeline adds no MULTI or EXEC and an error does not cancel later submitted commands.

Redis pipelining reduces per-command waits

Pipelining lets a client send several Redis commands without waiting for each reply before sending the next. It reduces request-response waiting and can amortize socket I/O overhead. Redis still executes the commands and produces their replies; batching is neither a promise of parallel execution nor a transaction boundary. ...

January 20, 2027 · 6 min · XB Field Notes