Command query responsibility segregation pattern

This is an important pattern that's used to realize decoupling at a database level. This pattern actually helps us to use different models to update and read data, as depicted in the following diagram. This segregation comes in handy as we embrace microservices, which are event-driven:

Command query responsibility segregation (CQRS) is acquiring a special significance because domain events are the inputs in the EDA era. However, the database expects a domain object, which is structurally different than a domain event. Here is a domain model object representing an account. The example is taken ...

Get Practical Site Reliability Engineering now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.