DynamoDBMapper now supports Amazon DynamoDB transactional API calls

Posted on: Apr 26, 2019

DynamoDBMapper now supports Amazon DynamoDB transactional API calls, enabling developers who use DynamoDBMapper to simplify their code when making coordinated, all-or-nothing changes to multiple items both within and across DynamoDB tables.

DynamoDBMapper is a class of the AWS SDK for Java that provides developers a high-level API library to map client-side classes to DynamoDB tables. Using DynamoDBMapper, developers can access tables; perform various create, read, update, and delete (CRUD) operations; and execute queries. Now, developers can use DynamoDBMapper to execute transactions. The transactional APIs provide developers atomic, consistent, isolated, and durable (ACID) operations in DynamoDB so that they can maintain data correctness in applications more easily. With transactions, developers can support workflows and business logic that require adding, updating, or deleting multiple items as a single, atomic operation. For example, a video game developer can ensure that players’ profiles are updated correctly when they exchange items in a game or make in-game purchases.

Support for transactions is available in all standard AWS Regions where DynamoDB is offered. Pricing for transactions is based on the sizes of the items in the transactions.

To download the AWS SDK for Java with the latest version of the DynamoDBMapper class, see AWS SDK for Java.