Command and Query Responsibility Segregation (CQRS) — architecture style
In a common approach, we’d normally handle both query and updates operations within the same endpoint, service logic and then rely on multiple repositories to persist data to the database. Some times, it can be complex to query from repositories all the data…