Database
1 min read
Distributed Locks with Redis: SET NX, Fencing and the Redlock Debate
The minimal correct lock and the four bugs hiding in simpler versions, fencing tokens for the expiry race, Redlock in two fair paragraphs, and the lock-free designs that beat locking entirely.