ff4j
ff4j copied to clipboard
Eventrepository implmentation in ff4j-store-aws-dynamodb
If I am not wrong, ff4j-store-aws-dynamodb doesn't have event repository implementation. I see however there is KeyValueEventRepository in ff4j-core module. Will it be useful to configure event repository in DDB?
AFAIK, Dynamo is a column oriented store. As such it is relevant to store timeseries as long as the row key is well defined (featurename + yyyymmdd ?)
K/V is not really a good implementation I think we can do better to have a proper where clause. But you are right there is no implementation yet.
If you are insterest to implement it I would recommend this one as idea: https://github.com/ff4j/ff4j/blob/master/ff4j-store-cassandra/src/main/java/org/ff4j/cassandra/store/EventRepositoryCassandra.java
Got it @clun , thanks for the pointer!
[Update]
- Still no dynamoDB store for audit as still not sure the database nature fits the requests on multiple dimension we want to do later
- Store Cassandra has been updated copy the data in multiple table to have multiple dimensions.
Still, you may be inrested in this idea: Each time you work with feature you can trigger SQS event and save event in a DB you like: https://github.com/ff4j/ff4j/issues/442