pipelining vs transaction in redis
问题 When we use a transaction in Redis, it basically pipelines all the commands within the transaction. And when EXEC is fired, then all the commands are executed together, thus always maintaining the atomicity of multiple commands. Isn't this same as pipelining? How are pipelining and transaction different? Also, why does not the single threaded nature of Redis suffice? Why do we explicitly need pipelining/transaction? 回答1: Pipelining is primarily a network optimization. It essentially means the