DynamoDB Transactions
DynamoDB Transactions
DynamoDB Transactions:
- ACID Transactions (Atomic, Consistent, Isolated, Durable)
- Atomic: all or nothing
- Consistent: valid transaction that must leave database in valid state
- prevents DB corruption or integrity issues
- Isolated: no dependency between different transactions
- Durable: when a transaction has been committed, it will remain committed even after system failure or power loss; written to disk instead of held in memory
- Great for mission critical systems
- Read or write multiple items across multiple tables as an all or nothing operation
- Check for pre-requisite condition before writing to a table
- Complex business logic for single transactions
- multiple steps
- conditional