For example: I want to delete an item or return 404 if it doesn't exist from a controller action. Am I breaking any rules? Commands are still separate ...
For example: I want to delete an item or return 404 if it doesn't exist from a controller action. Am I breaking any rules? Commands are still separate ...
Say I have a CreateUser command: class CreateUser { public string $email; public string $password; public string $firstName; public s ...
In a screen that displays many order detail lines of order, users can add, update, or delete rows or columns and then click the "Save" button to save ...
While using CQRS pattern with domain events to generate read model. If we add new column in database with some default data or insert new row direct ...
Currently we have an Asp.net application which uses SQL server for write and also read queries as a normal monolith application. Now we want to move ...
I have adopted the Command Query Separation principle in a project. However, I am not adhering to it strictly as we have a need for Commands to retur ...
on official Api-Platform website there is a General Design Considerations page. Last but not least, to create Event Sourcing-based systems, a conv ...
I'm trying out a new code structure where I'm splitting all my giant repositories and factories into loads of smaller classes each with a single respo ...
I'm trying to convert a view model to list and then return it to the view but am getting the cannot implicity convert type error. Code: What am I ...
I have an Octet class that is suppose to "package" eight samples and then send them forward. It has methods to add a new sample, check if it is alread ...
We're creating a new application for an entirely new domain model (and Bounded Context) 'Appointment'. We chose to combine CQS with Hexagonal Architec ...
In CQS (Command Query Separation) it is common to have commands with a "void" return value and Queries with a return type. (or so I have learned...) ...
When implementing CQRS with Domain Driven Design, we separate our command interface from our query interface. My understanding is that at the domain ...
Given a real-world anonymous shopping cart, the "AddToCart" workflow must do the following steps: Lookup the current product from the database. Ge ...
I am learning what is CQRS pattern and came to know there is also CQS pattern. When I tried to search I found lots of diagrams and info on CQRS but d ...
The CQS-principle (https://en.wikipedia.org/wiki/Command%E2%80%93query_separation) states that a command should return void. The recommendation ...
In my web app I'm tracking view counts on pages. Right now, the action in the controller issues a command to the data layer to increment the view cou ...
I implement Event Sourcing and CQRS pattern in my application. I inspired by CQRS journey where I downloaded sample code. There I found whole infrastr ...
I am separating my query and command on service side like this: Command Query Separation accepts that a method should change state or return a resu ...
These two snippets are from the JDK source code: Command-query separation (CQS) states that every method should either be a command that perfor ...