Using the CQRS pattern
The Command Query Responsibility Segregation (CQRS) pattern applies the command-query separation (https://en.wikipedia.org/wiki/Command-query_separation) principle by splitting the application into two parts, query side and command side. Query side is responsible for getting the data by only querying the state of the application, whereas command side is responsible for changing the state of the system by performing create, update, or delete operations on application data that may result in updation of one or more databases used by the application. Although the CQRS pattern is often used in conjunction with the event-sourcing pattern, it need not be tied to events and can be applied to any application with or without ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access