CQRS Examples and Screencasts [closed]

2019-01-20 21:42发布

问题:

I'm looking for some in depth end-to-end CQRS examples with a reasonable set of unit tests.

Also, if anyone knows of some CQRS screencasts as well it would be extremely handy.

I'm already aware of these examples

  • CQRS Info
  • Super Simple CQRS

回答1:

There's a implementation here MarkNijhof.

But after reading the documents from the CQRS Info site my favourite resource is Think Before Coding look at the post Tags. (http://thinkbeforecoding.com/)

Some other useful resources...

  • http://distributedpodcast.com/
  • http://www.udidahan.com/
  • http://abdullin.com/


回答2:

Microsoft patterns & practices is working on a guidance project called CQRS Journey. The idea is to develop a non-trivial system with multiple bounded contexts and apply CQRS, ES and other patterns & techniques where appropriate and document all lessons learnt along the way. The project is still in flight. Check out the journey progress at http://cqrsjourney.github.com

  • Code repo is at https://github.com/mspnp/cqrs-journey-code
  • Doc review via http://pundit.cloudapp.net

The project involves many community members and accepts contribitions!



回答3:

http://ncqrs.org/

Is a useful resource...



回答4:

Here is a complete example I wrote for my CQRS lib Scritchy:

  • Example.Domain: Domain implementation
  • Example.Specs : Domain behavior specs using MSpec
  • Example.Web : Example MVC web app (demo at http://scritchyExample.apphb.com )
  • Example.SignalR : Example html/Javascript/SignalR web app (using the same domain code)

Creating your CQRS app using the Scritchy nuget package is pretty straightforward and gets you up and running in a few minutes



回答5:

Here's some more informational resources, but unfortunately no end-to-end code samples beyond SimpleCQRS and MarkNijhof.

  • http://seabites.wordpress.com/
  • http://richarddingwall.name/2010/06/15/brownfield-cqrs-part-1-commands/
  • http://www.agilification.com/post/CQRS-Series-from-Mark-Nijhof.aspx
  • http://jonathan-oliver.blogspot.com/

I have come across a couple other code samples, though I have not yet had time to review them whatsoever:

  • http://dddsamplenet.codeplex.com/
  • http://agrcqrs.codeplex.com/


回答6:

Udi Dahan would have to be one of the experts in the CQRS field, imo.

Here is a blog about it: http://www.udidahan.com/2009/12/09/clarified-cqrs/

Here is a CQRS podcast (I haven't watched it, but if it's anything like his course presentation it will be great): http://skillsmatter.com/podcast/open-source-dot-net/udi-dahan-command-query-responsibility-segregation/rl-311

Here is a SOA talk (may not be directly relevant but excellent regardless): http://vimeo.com/5022174

If you have the time, I'd recommend popping along to one of Udi's courses when one is nearby, as he covers CQRS in depth.



回答7:

I recommend this screencast by Chris Tavares. It gives a good overview of CQRS and it shows some good examples in code.

URL: http://channel9.msdn.com/Blogs/MichaelLehman/PP-Symposium-2010-The-Commmand-Query-Separation-Pattern-Chris-Tavares



回答8:

I've got a sample of just the BDD style of unit-tests, it isn't end-to-end, but since you mentioned unit tests I figured it might be of interest. http://lucisferre.net/2011/02/05/behavior-driven-test-driven-domain-driven-design/



回答9:

There was a great session during aspConf 2012 by Ashic Mahtab.

CQRS with ASP.NET MVC - A Year On

Complete source code here