September 2023
Intermediate to advanced
470 pages
11h 12m
English
Using commands with events and queries on projections, we implemented an architectural design pattern called Command and Query Responsibility Segregation, CQRS for short.[36] As the name says, the idea behind it is to separate the model we use to read data (query) from the model we use to write data (command).
It’s important to note that while event sourcing and CQRS are often used together, it’s possible to adopt one without the other. However, the two approaches have a natural synergy that makes them well suited for use in tandem.
In particular, the functional approach addresses one of the main challenges associated with CQRS and event sourcing, which is the need to write and manage two separate ...
Read now
Unlock full access