Links to Command and Query Responsibility Segregation (CQRS) Pattern Code and Discussions
In my quest to get a better understanding what the heck Greg Young and Udi Dahan are talking about I’ve been on a search to find examples of how people are actually implementing these patterns.
First off if you are new to this and would like to learn more, I recommend you start with one or more of the following books:
They will get you started with Domain Driven Design and messaging. For the most part these books will get you up to speed so you can talk the talk. Once you�ve got a solid understanding of the vocabulary, you be were I think a lot of us are. How do we apply Eventing/Messaging to our domain models?
So here are a few links to help out:
First off is Mark Nijhof’s excellent series of posts that lead to his Fohjin Example Application. If your looking for public C# code to learn from this is it.
Second is Erik Rozendaal who wrote a lottery example to help train his coworkers. Erik’s code is written in Java.
Another Java implementation is the Axon Framework. I’ve not had a chance to check this one out yet. But the guys building it blog over at Girdshore.
Finally there’s Jeremie Chassaing blog and although he doesn’t have code to download his series of posts on cqrs has lots of code examples that he discusses.
Hopefully this is helpful. If you know of other code examples please let me know in the comments.