DynamoDB supports ACID transactions with some limitations.
Section previewIn computer science, ACID is a set of properties of database transactions intended to guarantee data validity despite errors, power failures, and other mishaps. In the context of databases, a set of database operations that satisfies the ACID properties is called a transaction.
Atomicity property guarantees that all item manipulation operations in the transaction will either commit or rollback
Consistency properties refers to a guarantee that even if there are failures in one or more operations in the transaction - data will always be in a consistent state irrespective of whether the txn committed or rolled back
Isolation property guarantees that item operations carried out in parallel will behave as if they are sequential
Durability property guarntess that once the transaction is committed - the data is guaranteed to be available in the persistent storage
are for Executing multiple all-or-nothing actions within & across tables with a single API.
Transacton API supports 2 types of condition checks. First one is at the item level - its available for put, update and delete item operations - you have already seen the Condition Expression in action in one of the earlier lessons
For transactional writes there is a condition check at transaction level. Idea is that if any of the conditions fail the transaction is rolled back