Hacker News new | ask | show | jobs
by DigitalTerminal 2555 days ago
In Azure, we solve this with leasing blobs and always renewing, and additionally checking ETags when writing.
2 comments

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-client
interested 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?