Re:How to Do Distributed Locking (2016)
by DigitalTerminal on Thursday June 20, 2019 @04:08AM
(#20230874)
In Azure, we solve this with leasing blobs and always renewing, and additionally checking ETags when writing.
[ Parent
| on HN ]
That’s cool. S3 is generally fantastic but as far as I know has no similar option to this. I wonder if they’ll ever have a strong consistency mode.
Within AWS, consider DynamoDB with the fantastic DynamoDB Lock Client[1]. It’s a “general purpose distributed locking library built on top of DynamoDB. It supports both coarse-grained and fine-grained locking.”
[1] https://github.com/awslabs/dynamodb-lock-clientinterested to know your approach to long leases lasting more than 60 seconds (if you have this?). do you go for continual renewing (and bailing out if you get too close to the timeout without getting a renewal). or do you go for infinite with your own break logic?