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