Member-only story
AWS Java SDK V2
DynamoDB enhanced with Kotlin
Introduction
If you have been using the AWS Java SDK for DynamoDB since its version 1, you will have implemented or come across the DynamoDBMapper
class. This class allows us to define the relationship or mapping between the actual items in the DynamoDB table and the Java POJO classes in our application.
In other words, the AWS Java SDK takes care of or abstracts out the low-level operations, i.e., constructing the relevant DynamoDB expression for the corresponding CRUD operations. This is very convenient for us when we write our application code.
To cut the story short, here comes the AWS Java SDK version 2. It is a major rewrite of version 1. The initial releases did not have the DynamoDB abstraction as provided by the DynamoDBMapper
class from version 1. What this means is that we need to handle the low-level operations, i.e., constructing attribute values and the Java POJO class objects.
It’s not too convenient anymore, is it?