Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How much does amazon dynamodb charge for acid transactions?


Asked by Carl Maldonado on Nov 28, 2021 FAQ



The first 2.5M reads per month are free, and $0.02 per 100,000 after that. After 10+ years of evangelizing the benefits of eventual consistency and the overkill of ACID transactions in distributed databases, Amazon DynamoDB finally announced support for ACID transactions.
Additionally,
There is no additional cost to enable transactions for DynamoDB tables. You only pay for the reads or writes that are part of your transaction. DynamoDB performs two underlying reads or writes of every item in the transaction, one to prepare the transaction and one to commit the transaction.
One may also ask, DynamoDB charges one write request unit for each write (up to 1 KB) and two write request units for transactional writes. AWS calculates the cost of reads using “Read Capacity Units.” Each RCU provides up to two reads per second, enough for 5.2 million reads per month.
Furthermore,
DynamoDB performs two underlying reads or writes of every item in the transaction, one to prepare the transaction and one to commit the transaction. No support for globally consistent secondary indexes even though the underlying database now has support for transactions.
Just so,
DynamoDB is not ACID compliant. It only provides the ‘C’ (consistency) and ‘D’ (durability) in ACID. Here is an example of how to achieve ACID on top of DynamoDB, but this makes the application architecture very complex.