🔗 Redfour: Binary Semaphores in Redis and Node

What's a binary semaphore? It’s a pattern that ensures that only one process (e.g. server in your cloud) has access to a critical section of code at a time. All other processes must wait for access. When the first process is done, another process will be notified and given access.

🌎 https://mixmax.com/blog/redfour-semaphore-redis-node