Closed BeatSager closed 6 years ago
Hi, interesting PR. Could you please elaborate some more on the design?
Hi,
in akka-persistence-cassandra all cassandra keyspaces are completely independent. I added this behavior to get a StorageExtension
for each configured keyspace. That's it.
Modifications in detail:
StorageExtension
. This is accomplished by having a map of storages instead of a singleton providing that one storage. The existing implementation would provide a storage for each JVM.StorageExtension#keyspaceFrom(config: Config)
to get the keyspace according the akka config.StorageExtension
.Hi, is this still a relevant PR?
Yes we use the feature this pr provides in our company. Would be great to have that merged.
What if the storageextension could be pluggable, this way a project that has a different storage extension impl requirement could configure the fqcn in typesafe config just like with the inmemory journal typesafe config L17. This way the class could look up and instantiate the appropriate storage extension L32
Could you please look into that and fix the PR so that it can be merged? That way my concern of having specific implementations have been addressed.
The StorageExtensionImpl should be pluggable of course, and in its own class and have its own configutation. What are your thoughts?
I think this would be a good solution. Currently I have not enough time to work on that, but will do it in about 2 weeks.
In our product we use this great plugin as well when we start up the developers local servers. We have many applications running store their data in deployed environment in different cassandra keyspaces. In order to test all this applications together we need this feature as well local in memory.