Performing atomic transactions on DynamoDB tables

I hope that we are all aware that operations in DynamoDB are eventually consistent. Considering this nature, it obviously does not support transactions the way we do in RDBMS. A transaction is a group of operations that need to be performed in one go, and they should be handled in an atomic nature. (If one operation fails, the complete transaction should be rolled back.)

There might be use cases where you would need to perform transactions in your application. Considering this need, AWS has provided open sources, client-side transaction libraries, which help us achieve atomic transactions in DynamoDB. In this recipe, we are going to see how to perform transactions on DynamoDB.

Getting ready

To get ...

Get DynamoDB Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.