swarthy / redis-semaphore

Distributed mutex and semaphore based on Redis
MIT License
153 stars 28 forks source link

Support for fences #127

Open kibertoad opened 2 years ago

kibertoad commented 2 years ago

See https://martin.kleppmann.com/2016/02/08/how-to-do-distributed-locking.html for the explanation of a problem.

jokester commented 2 weeks ago

How should that get implemented in this library then?

Maybe by issuing a monotonically increasing integer on lock acquisition?