Comment Comment by samsquire How do you ensure that a lock isn't acquired by two requests? Do you use atomic compare and set?How do you release a lock reliably? How do you solve the problem of releasing accidentally while using a resource?Can the lock jam locked if the process dies?I would use Consul for this or I would try avoid needing to lock to begin with.Even better is to use a language such as bloom Lang. parent samsquire 4 years ago
How do you release a lock reliably? How do you solve the problem of releasing accidentally while using a resource?
Can the lock jam locked if the process dies?
I would use Consul for this or I would try avoid needing to lock to begin with.
Even better is to use a language such as bloom Lang.