thunk-redis icon indicating copy to clipboard operation
thunk-redis copied to clipboard

redis cluster transactions

Open quinndiggity opened this issue 6 years ago • 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.

quinndiggity avatar Mar 23 '18 22:03 quinndiggity

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

quinndiggity avatar Mar 23 '18 22:03 quinndiggity

Can you commit the code, please?

zensh avatar Mar 25 '18 11:03 zensh