ff4j icon indicating copy to clipboard operation
ff4j copied to clipboard

Eventrepository implmentation in ff4j-store-aws-dynamodb

Open rahuldaskar opened this issue 4 years ago • 3 comments

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?

rahuldaskar avatar Jun 01 '20 11:06 rahuldaskar

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

clun avatar Jun 01 '20 12:06 clun

Got it @clun , thanks for the pointer!

rahuldaskar avatar Jun 02 '20 07:06 rahuldaskar

[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

clun avatar Aug 21 '20 11:08 clun