How do Repositories fit with CQRS?

I’ve read about CQRS systems that maintain a simple key value store on the command side to represent an application’s state, and others that merely correlate messages (using some sort of saga) and utilise the query store to represent an applications state instead. Either way there’ll no doubt be a persistence technology involved with these … Read more

CQRS Commands and Queries – Do they belong in the domain?

Commands and Events can be of very different concerns. They can be technical concerns, integration concerns, domain concerns… I assume that if you ask about domain, you’re implementing a domain model (maybe even with Domain Driven Design). If this is the case I’ll try to give you a really simplified response, so you can have … Read more

What is the difference between Command + CommandHandler and Service?

Having Commands gives you the benefits of the good old Command pattern: you can parameterize an object, e.g. a UI element, with a Command to perform you can store a Command and execute it later, e.g. in a queue or a transaction log you can track which Commands you executed, giving you a foundation for … Read more