Update DynamoDB item using DynamoDBMapper in Java

后端 未结 2 1895
春和景丽
春和景丽 2021-02-20 10:00

How can I update DynamoDB item using DynamoDBMapper?

I have multiple processes, using the DynamoDB table, thus, get + save will create inconsistency. I can not find the

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-20 10:18

    To have consistency in your dynamo db write operations you will have to choose one option between Optimistic locking and Conditional writes.

    Here are the links to AWS documentation which may help you;

    http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.OptimisticLocking.html

    http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html

提交回复
热议问题