4 ms·
Random thought - doesn't S3 have a leasing/locking system that could be used for distributed locks?
by GordonS 4y ago
Random thought - doesn't S3 have a leasing/locking system that could be used for distributed locks?
- keyless_ 4y agoUnfortunately, it doesn't. That was actually the reason I built this originally - there's no easy way to control read/write access to a file on S3 without using some sort of external locking system.
- killingtime74 4y agoDid Zookeeper or Etcd not suit your needs?
- keyless_ 4y agoThey are valid solutions for this use-case; the main drawback is you need to set up and maintain a ZooKeeper cluster. Lockable is intended as a simpler and faster-to-use alternative.
- IanCal 4y agoYou can add locks to objects, which restricts who can delete them and how, but requires bucket wide settings.
- GordonS 4y agoHave you looked at Azure Blob Storage's lock feature? Could that be used?
- nijave 4y agoAWS recommends using dynamo and has a Java reference implementation. Afaik GCP doesn't support locks either. Azure supports locks on blob store (their object store service)
- GordonS 4y agoAh, someone mentioned it in reference to Azure Blob Storage recently, and I had (apparently incorrectly) assumed it was also an S3 feature. Any reason Azure Blob Storage couldn't be used as a no-setup, managed, cheap way to acquire distributed locks?
- skyde 4y agoazure blob store is literally used as a cheap way to acquire distributed lock today by the azure sdk. if you look at azure event hub library they use blob as lock to partition the consumer instances at runtime.