Event sourcing and CQRS

EventSourcedBehaviors with the PersistenceQuery’s eventsByTag query can be used to do Event sourcing with Command and Query Responsibility Segregation (CQRS).

A full sample showing how do to this with Cassandra, including scaling the read side, is in the Akka samples repository.

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.