Sharing Knowledge

Hello

This day is a full research day.

There are a few points about CQRS.

Command and Query Responsibility Segregation is a design patter apply to systems architecture.

Is based on Reactive Manifesto, as a solution to keep an app elastic, resilient, responsive and message driven.

Is divided in two sections: query (read side) where the select data from storage petitions are handled.

Command side where the update transactions are handled and system data is updated and stored.

The system status is kept consistent after every create/update.

The command side handles the command, but the domain model handles the business rules and the system data consistence.

The communication between all modules is made by sending/receiving messages.

The messages should be published as events in a bus event.

Every component could subscribe to a bus channel and handle the event and event message.

The system status should be storage in a data base saving the events and events messages in creation order.




Comentarios