thunks/thunk-redis

redis cluster transactions

Opened this issue · 2 comments

This project seems to be abandoned, so this will likely just be a warning to potential users.

When running transactions (multi/exec), this client accepts 'MOVED' as an error the first time it tries to perform an operation on a key that is located on a different node (even when using hash tags), which will cause the entire transaction to be discarded.

Subsequent attempts against the key are successful (the client likely caches the location of the hash slot in question), but without fail the first transaction will always fail.

Not great when using redis as a state machine with dynamic keys for every transaction.

ioredis (https://github.com/luin/ioredis) does not have this issue.

zensh commented

Can you commit the code, please?