Database Reference
In-Depth Information
Conditional writes
Conditional writes are a special feature of DynamoDB designed to avoid data inconsistency
when it updates multiple users at the same time. There might be a case where two clients
read a certain data item at the same time, and if client 1 updates it first, and then client 2
updates it again, the update by client 1 would be lost. Let's understand this scenario in de-
tail.
Consider that we have a book table that contains an attribute called bookPrice . Now, if
two clients are trying to increase the price by some amount, then there might be a chance
that the update that was done to the item first would be lost, as shown in the following dia-
gram:
Search WWH ::




Custom Search