2 ms·Quick and dirty distributed locking using a database1 points by siloraptor 14y agoExpiredLink 14y agoNeither quick nor dirty - nor trivial. You need to set up a reasonable time-frame (timeout) for the lock.