Does dynamodb have commit and rollback transaction http APIs?

1

My traditional app has the following style of doing transaction against a database such as postgres or oracle.

  1. Acquire a read-committed transaction from the server.
  2. Use that transaction "object" for subsequent db requests.
  3. Based on how those request(s) were serviced - commit or rollback the transaction accordingly.

In other words, I am trying to combine independent db operations (aka requests) under the same transaction session. My application has control on how that session is managed.

Does dynamodb allow for this kind of use case?

質問済み 2年前2889ビュー
1回答
2

DynamoDB does not provide the ability to ROLLBACK a transaction like you would do on a relational system. However, it does provide Transactional API's which allow for ACID compliance. You can submit batches of up to 100 items as a single request and ensure that wither all requests succeed or none at all.

For your use-case you may be able to make use of version control: https://aws.amazon.com/blogs/database/implementing-version-control-using-amazon-dynamodb/

profile pictureAWS
エキスパート
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ