I\'m wondering if mutexes/locks are required for data access within Node.js. For example, lets say I\'ve created a simple server. The server provides a couple protocol metho
I was looking for solution for node mutexes. Mutexes are sometimes necessary - you could be running multiple instances of your node application and may want to assure that only one of them is doing some particular thing. All solutions I could find were either not cross-process or depending on redis.
So I made my own solution using file locks: https://github.com/Perennials/mutex-node