Each lock request is put into the request queue (each lock is hosted by its own queue separately from other queues) and processed in order of their priority (FIFO).
This feature allows replacing PostgreSQL's 'advisory locks' with RedisQueuedLocks, maintaining the 'ordered queue' behavior.
RedisQueuedLocks has been battle-tested on huge projects in production, handling thousands of locks per second under high load.
The gem is currently in development but major features are ready, already being used in production with a '1.0.0' release on the horizon.
Collection
[
|
...
]