To include this library into your sbt
project, add the following lines to your build.sbt
file:
resolvers += "Product-Foundry at bintray" at "http://dl.bintray.com/productfoundry/maven"
libraryDependencies += "com.productfoundry" %% "akka-cqrs" % "0.1.20"
This version of akka-cqrs
is built using Scala 2.11.6.
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.