Tag Archives: Ruby

A Distributed Mutex and Semaphore using Redis

Redis has some really neat atomic multi-operation commands that can be used to create a distributed mutex. Check out the documentation for the SETNX command for an example. This example is based on polling and unfair: waiting processes are not … Continue reading

Posted in Algorithms, Code Poetry | Tagged , | 8 Comments