Dynamo DB Optimistic Locking Behavior during Save Action
问题 Scenario: We have a Dynamo DB table supporting Optimistic Locking with Version Number. Two concurrent threads are trying to save two different entries with the same primary key value to that Table. Question: Will ConditionalCheckFailedException be thrown for the latter save action? 回答1: Yes, the second thread which tries to insert the same data would throw ConditionalCheckFailedException . com.amazonaws.services.dynamodbv2.model.ConditionalCheckFailedException As soon as the item is saved in