Russel Huang
Oct 20, 2020

I think there is some misconception on how CQRS works, its not mainly only for separating two data stores based on database Master-Replicas structure. Instead it may be a two different kind of database. And the point is "data" that stored in write-db should be simplified by an event handler and store to read-db so that "Query" can just do simple logic query from read-db that result much more efficient and higher performance. Unless "Query" required to perform complex queries (LEFT JOIN, INNER JOIN, etc..). That's why only complex business logic benefits from this pattern.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Russel Huang
Russel Huang

Written by Russel Huang

Curiosity killed the cat, but satisfaction brought it back

Responses (1)

Write a response