An event log actor with Apache Cassandra as storage backend. It uses
the Cassandra extension to connect to a Cassandra cluster. Applications should create an instance
of this actor using the props method of the CassandraEventLogcompanion object.
val factory: ActorRefFactory = ... // ActorSystem or ActorContextval logId: String = "example"// Unique log idval log = factory.actorOf(CassandraEventLog.props(logId))
Each event log actor creates two tables in the configured keyspace (see also Cassandra). Assuming
the following table prefix
eventuate.log.cassandra.table-prefix = "log"
and a log id with value example, the names of these two tables are
log_example which represents the local event log.
log_example_agg which is an index of the local event log for those events that have non-empty
destinationAggregateIds set. It is used for fast recovery
of event-sourced actors or views that have an aggregateId defined.
An event log actor with Apache Cassandra as storage backend. It uses the Cassandra extension to connect to a Cassandra cluster. Applications should create an instance of this actor using the
props
method of theCassandraEventLog
companion object.Each event log actor creates two tables in the configured keyspace (see also Cassandra). Assuming the following table prefix
eventuate.log.cassandra.table-prefix = "log"
and a log
id
with valueexample
, the names of these two tables arelog_example
which represents the local event log.log_example_agg
which is an index of the local event log for those events that have non-empty destinationAggregateIds set. It is used for fast recovery of event-sourced actors or views that have an aggregateId defined.DurableEvent
Cassandra