Skip to content

Commit

Permalink
docs: adapt cqrs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Aug 15, 2024
1 parent 9d0483f commit 2ed6ea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patterns/command-query-responsibility-segregation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ description: Separation between commands and queries

In its most basic form, it's just a separation (segregation) between requests that change data (commands) and requests that query data. For example application 1 handles all the commands and application 2 handles all the queries. Usually because each form has separate performance requirements such as throughput, latency, security, etc.

Because read and write happens in different places, one of the drawbacks is having consistency between queries and commands as they lag behind.
Because read and write happens in different places, one of the drawbacks is having consistency between queries and commands as they lag behind, also called [eventual consistency](./glossary.md#).

Application in charge of processing commands:
```json
{
"asyncapi": "3.0.0",
"info": {
"title": "Command application",
"description": "The application in charge of processing commands",
"description": "The application in charge of processing commands",
"version": "1.0.0"
},
"channels": {
Expand Down Expand Up @@ -94,7 +94,7 @@ Application in charge of processing queries:
"asyncapi": "3.0.0",
"info": {
"title": "Query application",
"description": "The application in charge of processing queries",
"description": "The application in charge of processing queries",
"version": "1.0.0"
},
"channels": {
Expand Down

0 comments on commit 2ed6ea0

Please sign in to comment.