Warning: This is a work in progress, API changes are likely
To include this library into your
sbt project, add the following lines to your
resolvers += "Product-Foundry at bintray" at "http://dl.bintray.com/productfoundry/maven" libraryDependencies += "com.productfoundry" %% "akka-cqrs" % "1"
This version of
akka-cqrs is built using Akka 2.4.19 and Scala 2.11.11.
Entities are persistent objects that implement DDD concepts. There are different entity types:
Aggregates process commands, validate business rules and generate events. They act as a context boundary for a single domain concept. Typically, the aggregate represents a single instance, rather than a group. All aggregates reply with a message indicating the update result.
Process managers subscribe to events to execute long running processes. They have durable state to track a single process using a finite state machine implementation. A process can subscribe to events from different aggregates.
Our data structures are serialized using
protoc -I ./core/src/main/protobuf/ --java_out=./core/src/main/java/ ./core/src/main/protobuf/*