A minimal example illustrating the principles of Event Sourcing and CQRS in Scala
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Introduction to Event Sourcing and CQRS in Scala

The purpose of this repository it to provide minimal examples, illustrating the core principles of Event Sourcing and CQRS, in the Scala language. I used the code for an introductory presentation on the topic. [Slides on SlideShare]

The example use case is a football league. The desired outcome is a representation of the league table, indicating how many games each team has played and how many points they have gathered.

Initially, only an implementation with the Lagom framework has been done.

To do

Clean up, add tests and some commments.

Implement further examples, in Akka Persistence, fun.CQRS and Eventuate.


I coded this in a bit of a rush, shortly before the presentation. So the code is far from perfect and could use some refinement. And I didn't even get to implement the example in the other frameworks I mentioned in the talk yet, which I want to do for comparison. If you're interested in that, please check back in a few weeks.

Suggestions for improvements are welcome, through issues or PRs.