-
Notifications
You must be signed in to change notification settings - Fork 91
3) CQRS
Filipe Augusto Lima de Souza edited this page Oct 28, 2019
·
2 revisions
Segregation between Commands and Queries, with isolated databases and different models
Has direct access to business rules and is responsible for only writes in the application.
Below you can find a basic interaction between components in the Command Stack:
Responsible to provide data to consumers of your application, containing a simplified and more suitable model for reading, with calculated data, aggregated values and materialized structures.
The fallowing image contains the basic interaction between components in the Query Stack:
Given the physical isolation of data stores, Command Stack and Query Stack must communicate to synchronize data. This is done here using a Message Broker.