Search code examples
entity-frameworkarchitecturesharp-architecturearchitectural-patterns

Is CQRS alternative to CRUD?


What is different between CQRS and CRUD and can I use the UnitOfWork and Repository patterns in both cases ?

If I have a complicated relationship between the entites which one you are recommending me and why ?

CQRS pattern : http://martinfowler.com/bliki/CQRS.html
CRUD : http://en.wikipedia.org/wiki/Create,_read,_update_and_delete

Any help will be greatly appreciated.


Solution

  • CQRS is usually used for complex application projects. DDD is also used for complex application projects and seems to be associated with CQRS. DDD attempts to deal with the complexity of the behaviour. CRUD systems have little or no behaviour. A system with little or no behaviour doesn't really have a complex event structure, so it's hard to say how much benefit you get from CQRS.