Command Query Responsibility Segregation design pattern
8
votes
3answers
927 views
Are Domain Objects in Domain Driven Design only supposed to be write-only?
I've been reading about Domain Driven Design for almost two years and have been cautiously been introducing some concepts in to my daily work or at least making plans for how things I do regularly ...
5
votes
3answers
520 views
CQRS without using others patterns
I would like to explain CQRS to my team of developers. I just can't figure out how to explain it in the simplest way so they can implement the pattern rapidly without any others frameworks. I've read ...
5
votes
4answers
443 views
Command-Query-Separation and multithreading safe interfaces
I like the command query separation pattern (from OOSC / Eiffel - basically you either return a value or you change the state of the class - but not both). This makes reasoning about the class easier ...
5
votes
2answers
1k views
Command handlers and DDD
I have an ASP.NET MVC application, that uses a query service to get data and a command service to send commands. My question is about the command part.
If a request comes in, the command service uses ...
4
votes
4answers
994 views
Is it bad practice for services to share a database in SOA?
I have recently been reading Hohpe and Woolf's Enterprise Integration Patterns, some of Thomas Erl's books on SOA and watching various videos and podcasts by Udi Dahan et al. on CQRS and Event Driven ...
4
votes
2answers
1k views
Can SQL Server and Mongo be used together?
We have a large news-oriented site that has high web traffic. The architecture is your often seen DB - Repo Layer - Services Layer - Asp.Net MVC. The problem that we've been seeing is around read ...
4
votes
2answers
762 views
DDD, Saga & Event-sourcing: Can a Compensate Action simply be a delete on the event store?
I realize the above question probably raises a few 'what??'s, but let me try to explain :
I'm trying to wrap my head on a couple of related concepts, basically the Saga-pattern ( ...
3
votes
1answer
937 views
Is there a mature, easy-to-use CQRS framework that is not Azure-specific, not outdated, or not well adopted?
I've been doing research on .net implementations with CQRS. Either everything I've seen so far is do-it-yourself, azure-specific, outdated (i think), or not well adopted
Problems:
Scritchy - is not ...
3
votes
3answers
586 views
What is the best way to scale a CQRS system?
In the previous months I have been asking a lot of questions concerning the architecture of an application I'm working on. Thanks to the answers the architectural design has changed - in fact, it has ...
3
votes
1answer
201 views
Distinguishing between UI command & domain commands
I am building a WPF client application using the MVVM pattern that provides an interface on top of an existing set of business logic residing in a library which is shared with other applications. The ...
3
votes
1answer
253 views
Distributed application using RabbitMQ
I am on my way to create an application with 4 bounded context using CQRS & event sourcing.
In order to make these bounded context talk to each other I was planning on using Rabbit MQ.
My ...
3
votes
1answer
1k views
.NET CQRS Frameworks nCQRS vs Lokad.CQRS
For the last couple of weeks I've been reading up and watching any resources I can find on CQRS. I really like the concept and am keen to start delving deeper. I have only found 2 major .NET ...
2
votes
1answer
398 views
CQRS + Event Sourcing: (is it correct that) Commands are generally communicated point-to-point, while Domain Events are communicated through pub/sub?
Didn't know how to shorten that title.
I'm basically trying to wrap my head around the concept of CQRS ( http://en.wikipedia.org/wiki/Command-query_separation) and related concepts.
Although CQRS ...
2
votes
2answers
360 views
CQRS applicability when some commands need to block the UI
I am working on an app which I would dearly love to transition from a fairly traditional layered architecture to CQRS, for a number of reasons, not least fo which is that having a robust event log ...
1
vote
2answers
182 views
Designing a hierarchical structure with lots of reads and writes?
I am in the process of working on a video on demand system part of it involves the management of a hierarchical tree structure (think windows explorer) which allows users to upload videos, move ...
1
vote
1answer
199 views
Separation versus Segregation
The term "segregation" is used in the CQRS pattern.
What's the difference between segregation versus separation in this case?
1
vote
2answers
207 views
Audit trails and recording actions
Background
A discussion that has come up at work recently is how we handle audit logging and the recording of events. We are integrating with a 3rd party app so triggers are a no no from the off so ...
1
vote
1answer
287 views
CQRS with Repository pattern and Inversion of Control (with DI)
I assigned a POC project to someone where I asked to implement both Command Query Responsibility Segregation, Inversion of Control (with Dependency Injection) and Repository pattern. “Someone” gave ...
1
vote
1answer
250 views
CQRS and cache invalidation (while load balancing)
I'm slowly trying to migrate our web application to use CQRS principals. In particular, I have separated "write" and "read" interfaces into commands and queries.
I have implemented a "reader" ...
1
vote
1answer
335 views
Inheritance, commands and event sourcing
In order not to redo things several times I wanted to factorize common stuff. For Instance, let's say we have a cow and a horse. The cow produces milk, the horse runs fast, but both eat grass.
...