其它存储机制
Fusion DiscoveryX 使用 Akka Persistence 作为存储层,且使用 Akka Persistence 来存储所有数据,所以理论上只要实现了 Akka Persistence Plugins 的存储系统都可应用于 Fusion DiscoveryX。
需要修改 akka.persistence
配置使用想要使用的存储插件,同时,还需要将相应插件依赖的 jar 包入到 Fusion DiscoveryX 软件 lib
目录里面。
MongoDB
- sbt
libraryDependencies += "com.github.scullxbones" % "akka-persistence-mongo-rxmongo_2.12" % "2.3.2"
- Gradle
dependencies { compile group: 'com.github.scullxbones', name: 'akka-persistence-mongo-rxmongo_2.12', version: '2.3.2' }
- Maven
<dependency> <groupId>com.github.scullxbones</groupId> <artifactId>akka-persistence-mongo-rxmongo_2.12</artifactId> <version>2.3.2</version> </dependency>
DynamoDB
- sbt
libraryDependencies += "com.typesafe.akka" %% "akka-persistence-dynamodb" % "1.1.1"
- Gradle
dependencies { compile group: 'com.typesafe.akka', name: 'akka-persistence-dynamodb_2.13', version: '1.1.1' }
- Maven
<dependency> <groupId>com.typesafe.akka</groupId> <artifactId>akka-persistence-dynamodb_2.13</artifactId> <version>1.1.1</version> </dependency>
CouchBase
- sbt
libraryDependencies += "com.lightbend.akka" %% "akka-persistence-couchbase" % "1.0"
- Gradle
dependencies { compile group: 'com.lightbend.akka', name: 'akka-persistence-couchbase_2.13', version: '1.0' }
- Maven
<dependency> <groupId>com.lightbend.akka</groupId> <artifactId>akka-persistence-couchbase_2.13</artifactId> <version>1.0</version> </dependency>