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?

posta 2 anni fa2889 visualizzazioni
1 Risposta
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
ESPERTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande