What's the recommended way to implement a simple locking mechanism to be used in conjunction with S3?
Example of what I want to do:
- acquire lock by object id
- read object from S3
- modify data
- write object to S3
- release lock
Ideally looking for a cloud based locking mechanism. I could use memcached locally, but then I have to deal with scaling that. I don't see an obvious way to implement lightweight locking with any AWS APIs, but it seems like a common problem.
I wonder if you could use SimpleDB to do an atomic acquire lock operation. Has anyone tried that?