{i: 1, v: "fo...">

Are DynamoDB conditional records highly consistent?

Suppose this table already contains the following key value pair:

"abc" => {i: 1, v: "foo"}

Then, two clients invoke conflicting concurrent conditional records. Client 1 writes:

"abc" => {i: 2, v: "bar1"} if i == 1

Client 2 writes:

"abc" => {i: 2, v: "bar2"} if i == 1

Then, is it guaranteed that the write operation of one client will be successful?

+4
source share
1 answer

Yes, this is exactly the precedent for which they are intended. You can see an example in docs .

+3
source

All Articles