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:
i dont think that you can do this using S3 only, using simpleDB's consistency enhancements as james said is a good way that works
you can look for some examples here : Amazon SimpleDB Consistency Enhancements
another approach that might be fine is using the versioning feature of S3
so basically, store an object id/version id pair in simpleDB as the most "valid" version
and assure that all GET requests will retrieve that version
after a successful PUT of a modified object, update the version id in the DB
this way you could also use the ability to retrieve previous versions of an object for restoring if needed.