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 started with this recipe, you should have your workstation ready with the Eclipse IDE.
How to do it…
To get started, we will first need to download the source code of the library from GitHub and build the code to generate the JAR file. You can download...