Repository navigation
Why does ClusterClient.TxPipeline execute slots cmds squentially,but not concurrentlly? #3200
Replies: 1 comment
|
The important distinction is that In go-redis v9.7.0, commands were grouped by hash slot and the outer slot loop was sequential (source). Each slot therefore received a separate transaction; the whole call was not one atomic cross-slot transaction. Running those groups concurrently could improve latency, but it would still be multiple independent transactions and could create a misleading atomicity expectation. The current behavior makes that boundary explicit: So the practical choices are:
That preserves the semantic difference: concurrency across independent shards belongs to a normal pipeline; atomic |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
every slot is independence,so I think different slot can execute cms concurrentlly.
All reactions