Skip to main content

Questions tagged [read-model]

Filter by
Sorted by
Tagged with
0 votes
1 answer
100 views

I have a system landscape consisting of multiple applications. Each application provides REST interfaces to communicate with the outside world. Each application has its own data storage (some kind of ...
Harold L. Brown's user avatar
6 votes
1 answer
2k views

I am building an application and trying to embrace Domain Driven design principles, CQRS and event sourcing. We are having two applications one for reading and another for writing. The write ...
Nachiappan Kumarappan's user avatar
2 votes
1 answer
651 views

I'm developing an event-sourced/CQRS application and do not understand the best strategy to use when building the read model projections when additional domain data is needed. A partial representation ...
Clarkstachio's user avatar
2 votes
3 answers
1k views

I have an aggregate root called SizeRangeAggregate which holds the range of size of clothing piece dimension and price for that range. I created an post rest API which create new SizeRangeAggregate. ...
Vikas Kumar's user avatar
6 votes
1 answer
12k views

If I understand the concept of read models correctly, then it's just a simple query to return a use case specific data set. But a DTO seems to have the same purpose, but in a more complex way (...
Hans's user avatar
  • 572
1 vote
3 answers
856 views

I am working on a project to help learn DDD and am trying to do CQRS and Event Sourcing. Code is in C#. For this example, lets say I have 2 aggregates, Customer and Product. My aggregate repository ...
Entith's user avatar
  • 338
6 votes
1 answer
5k views

I'm looking for some insights about how to handle the read model in a CQRS Event Sourcing application, in order to do the best to ensure data consistency. The missing point is how to be sure (...
Enrico Massone's user avatar
0 votes
1 answer
1k views

I am considering CQRS for building a realtime game server (not gameplay but the economy). For some reasons. Scaling, Event logging, Model changing. However in realtime game when player upgrade, for ...
kitta's user avatar
  • 717
4 votes
5 answers
3k views

I'm in researching phase of CQRS+ES. Never done in real world yet. But very soon. However what I saw in StackOverflow and projects, CQRS seems to be fire and forget. So what if there is a chain ...
kitta's user avatar
  • 717
2 votes
1 answer
2k views

We're building two microservices that use CQRS and Event Sourcing: an Order Service and an Inventory Service. When an order is made, the inventory of that item must be decreased by the amount ordered. ...
Peter's user avatar
  • 988
15 votes
3 answers
6k views

So I've been flirting with Event Sourcing and CQRS for a while now, though I've never had the opportunity to apply the patterns on a real project. I understand the benefits of separating your read ...
MetaFight's user avatar
  • 11.6k
2 votes
1 answer
2k views

I am working on understanding DDD and want to see if this idea is sound, if it is common practice, and if there are any pitfalls or unforeseen complications. I want to effectively have one "entity" ...
Entith's user avatar
  • 338
4 votes
2 answers
4k views

Currently looking into Event Sourcing in a Microservices architecture and I've found this article. It describes a possible implementation of CQRS and event sourcing. If the logic dealing with updating ...
Torsten N.'s user avatar
-1 votes
1 answer
887 views

This is my current CQRS use-case setup: Command DTO is received in application layer handler where we map Command DTO to appropriate domain objects if needed, re-hydrate aggregate root from repo and ...
Bojan Vukasovic's user avatar
12 votes
2 answers
4k views

As far as I understand, the big idea behind CQRS is having 2 different data models for handling commands and queries. These are called "write model" and "read model". Let's consider an example of ...
Andrey Agibalov's user avatar
2 votes
2 answers
2k views

This is a question for those times you are creating the read model by event handlers. The question comes down to : How can a Event Handler draw from other sources of information than what is ...
Ludovic C's user avatar
  • 613
1 vote
1 answer
673 views

I have a design question in the "field" of CQRS / DDD. I will not explain in depth the domain, but only what's needed. It's a CONTACT domain, so it manages the contact informations of people and ...
Ludovic C's user avatar
  • 613
10 votes
3 answers
7k views

Since CQRS and DDD do not imply one another I was curious what terms belong to DDD and what terms belong to CQRS. Because the two concepts are so much used together in the literature I usually mix ...
redhead's user avatar
  • 591
1 vote
2 answers
287 views

I have the following Ubiquitous language defined by our domain expert: A User can find UserGroups and add himself to it. A user can query a list of UserGroups where he is member of and remove himself ...
Pepster's user avatar
  • 299
9 votes
2 answers
4k views

It's very interesting how to restore read model in system based on CQRS. In regular mode system processes commands, creates domain events and posts them to message bus. Then another part of system (...
lomomike's user avatar
7 votes
1 answer
1k views

Is there any mechanism or best practise for finding aggregates by different property than aggregate ID? I'll try to explain my question on example. There is Cart aggregate (event-sourced) and ...
František Maša's user avatar
3 votes
4 answers
2k views

Context: User wants to edit entity details, say user name. Assuming the fact that the Read Model is eventually consistent with the Write Model is it conceptually wrong to query write model in order ...
Stanislav O Chernykh's user avatar
1 vote
1 answer
607 views

Here is a similar question Where to validate domain model rules that depend on database content? I am asking this new question because I have more descriptions and I don't want to change the ...
tunmise fasipe's user avatar