There are occasions when it’s necessary to implement transactions and all that they entail, specifically those concepts that are closely related to ACID. DynamoDB allows us to execute transactions and, in this lesson, we’ll analyze in detail how they are implemented on this database.

Transactions in DynamoDB

As mentioned before, DynamoDB implements the concepts of Atomicity, Consistency, Isolation and Durability which constitute a transaction. A transaction is made up of one or more command executions within a single request. To clarify this concept, we can have a look at the following image.

It’s observed that there is an array of commands that we want to execute on a table. In this case, they will be executed with a single request:

Get hands-on with 1200+ tech skills courses.