I have multiple Instances of the server. I have a s3 mounted location for files synchronization.and I have to update those files, one at a time...so I want to take a lock on that file, so that any other Instance cannot work on that file when one is already working.
nodejs npm's for LOCK work good for only within a server not around all Instances.
Is there a possible workaround for this?