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년 전2916회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠