Skip to main content

Questions tagged [read-model]

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

15 30 50 per page