Reputation: 3340
Let's say I'm using eventually consistent read mode. After my first write to a key with value {"name":"Bob", "age":"1"}, my read happens to return stale data from a replica (old value {"name":"Bob", "age":"0"}), and then i make a second write (based on this stale read) with value {"name":"Cat", "age":"0"}.
Then what happens in DynamoDb side?
If no.3 is correct behavior, then how it works behind the scenes? And how it knows that i didn't intentionally make the age as 0?
Upvotes: 0
Views: 687
Reputation: 1016
From your answers it's no.2. By default, DynamoDB has eventually consistent reads, but writes are always strongly consistent.
The way it works:
Upvotes: 0