proper-lockfile

A inter-process and inter-machine lockfile utility that works on a local or network file system

redis-dlm

A Distributed Lock Manager for Redis, implemented with the RedLock algorithm, using either node-redis or ioredis clients.