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

Stop using SETNX for locking

Open thesecretmaster opened this issue 6 years ago • 2 comments
trafficstars

According to the documentation, you shouldn't use SETNX for locking and instead use the Redlock algorithm as described here. Since there's already a redlock-rb gem, integrating it shouldn't be too hard.

thesecretmaster avatar Dec 20 '18 20:12 thesecretmaster

Sounds interesting! Would definitely accept a patch for this. CC @tmsrjs

nateware avatar Nov 16 '19 03:11 nateware

@thesecretmaster Did you intend to link to this project? The redlock-rb project linked above hasn't had a commit since 2015.

allisonphillips avatar Feb 06 '20 03:02 allisonphillips