Feel like a geek and get yourself Ema Personal Wiki for Android and Windows

06 March 2010

A C# CQRS framework AgrCQRS

To get some grip on the topics DDD, CQRS and Event Sourcing, I have started on a framework for CQRS applications and a sample (questionnaire) application which uses the framework. It is heavily inspired by the resources mentioned below. You can find the project on its CodePlex site: http://agrcqrs.codeplex.com/

Lately a very interesting pattern has emerged, the Command Query Responsibility Segregation (CQRS) pattern. It is actually an existing software pattern that is being applied on a higher level, that is a framework level. It comes down to seperating the domain model and domain logic from the read model. The pattern gives the advantages of high scalability and removes quite some concerns which are introduced by using the domain model for querying, for which it simply isn't well suited.

CQRS and Event Sourcing seem to go hand in hand. Event sourcing is a way of storing state by storing the stack of events that led to the state instead of storing the state itself.

Watching/reading list:
Remember CQRS is an evolving pattern, and there is few frameworks or guidelines which you can grab and start to use (yet). The framework I created on CodePlex can be used, but needs polishing.

The AgrCQRS framework is written for the .NET framework 3.5 in C#.

3 comments:

silentium universi said...

Thank you for very useful example of implementation CQRS and ES!

Anonymous said...

Your implementation appears to be the most complete and comprehensive that I've seen.
Keep up the good work!

HVAC Man said...

Wow, the implementation you have made is remarkable. Thanks for using such a good example.