I am struggling with my Read Model, as it is a kind of mixture between the domain logic and the reading model. Imagine getting quotes for a hotel or airline. In my case, this is delivery. To get a quote, you need to read the existing tariff tables, and then calculate the rate. You can write it down as a quote to eventually turn into an order, but the part of getting quotes is essentially read, with some logic (i.e. a Service for getting the current fuel speed) to affect the speed. The totality will be a quote.
So, would you use a reading model to get a contract / bid table and map it to a domain? Keep in mind that reading will be optimized, it's not just a simple GetByID ... and, preferably, from a reading store for performance.
source
share