derjust / spring-data-dynamodb

This module deals with enhanced support for a data access layer built on AWS DynamoDB.
https://derjust.github.io/spring-data-dynamodb/
Apache License 2.0
403 stars 141 forks source link

Question: Refactor using `DynamoDBTableMapper` instances? #222

Open ryonday opened 6 years ago

ryonday commented 6 years ago

In the 1.11.x series of the AWS SDK, they introduced the concept of a DynamoDBTableMapper, which not only encapsulates DynamoDB operations based on a specific type, but also allows easy access to the hash key, range key, and their attribute names for a certain type.

My gut feeling is that this would be an easy way to cut a lot of code out of the project (such as the code that finds and returns hash/range key values), and would also simplify the DynamoDBOperations class (by obviating the need to pass the class of a type).

I've been thinking about working up a prototype using these and some additional features of both the DynamoDBTableMapper and some other 1.11.x features.

@derjust Is this a direction you would be interested in going for this project? If so I'm happy to contribute.

derjust commented 6 years ago

Yes - as part of #17 I also identified a bunch of code that should go away and make instantiation easier if only the newer parts of the AWS SDK are used. Right now I have not a lot of free time - as evident how seldomly i push to #17's branch. But always open for PRs

Thanks