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
401 stars 141 forks source link

Bulkhead support #249

Open arthurhenning opened 5 years ago

arthurhenning commented 5 years ago

We need to have the ability to use different DynamoDB clients and thread pools for different resource types. This would simulate bulkheads and let us tune the way we interact with different tables from the same application.

Currently a single global DynamoDBTemplate is used for every resource type. We could enhance this by providing and optional mapping of domain class to DynamoDBTemplate, and use it when creating a new SimpleDynamoDBCrudRepository. If not custom template is provided for the current domain class, we could use the default one.

arthurhenning commented 5 years ago

@derjust what is your view on this one? If it makes sense, we can start to implement it and submit a pull request.