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?

asked 2 years ago2897 views
1 Answer
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
EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions