CQRS
Start with the article on facts and myths: it explains what CQRS requires and what it doesn’t, like separate databases or Event Sourcing. Others answer practical questions, such as whether a command can return a value, and show CQRS in .NET code. The rest look at the read side and at commands: building read models from events and handling a command that arrives twice. The CQRS guide puts the key articles in order.
8 articles
![Dealing with Race Conditions in Event-Driven Architecture with Read Models]()
Dealing with Race Conditions in Event-Driven Architecture with Read Models
My events came out of order! What should I do?! Are you familiar with the term “phantom record” and its benefits? No? Let me explain it to…
![Idempotent Command Handling]()
Idempotent Command Handling
“Is your command handling idempotent?” Sounds like a douchebag question to ask. Actually, that’s not a question but a statement that we want…
![Guide to Projections and Read Models in Event-Driven Architecture]()
Guide to Projections and Read Models in Event-Driven Architecture
If I had to choose the killer feature of Event Sourcing, I’d select projections. Why? I’ll explain that in detail in this article. Events…
![CQRS is simpler than you think with .NET 6 and C# 10]()
CQRS is simpler than you think with .NET 6 and C# 10
.NET and CQRS are well known for the high ceremony and enterprise feeling. You should treat that as superstition. Let me tell you why. CQRS…
![Event Streaming is not Event Sourcing!]()
Event Streaming is not Event Sourcing!
I usually don’t try to fight the HackerNews or Reddit opinions. That said, I cannot deny that they’re powerful platforms. The heated rants…
![How to register all CQRS handlers by convention]()
How to register all CQRS handlers by convention
In CQRS, it’s common to define interfaces for the handlers to enforce the unified code structure. Such an approach is used, e.g. by MediatR…
![Can command return a value?]()
Can command return a value?
Last week I busted common myths and explained facts about CQRS. Today I’ll continue my effort. I tackle one of the most common questions…
![CQRS facts and myths explained]()
CQRS facts and myths explained
I’m sure that you know a lot of Urban Legends. They usually start with “hey, my friend’s cousin saw that…” or “you know, I’ve read such…







