I am working on an application written in Flask and backed by Amazon's DynamoDB accessed through boto.
For a specific use case, we need to retrieve a value from a table and then make it unavailable for other users.
However, by retrieving and then deleting the value, a race-condition could occur in between the retrieval and deletion.
Is there any way to retrieve an item from a table and immediately delete or update it in an atomic fashion?