either have a dedicated read model just to answer that query or use an
existing one from the query side. Obviously you will need to consider
eventual consistency as well.
Alternatively, just answer the question at run-time by parsing all the
relevant events (EmployeeAdded for example)- not sure about
performance implications though
On 20 April 2015 at 12:02, David Reynolds <
daverey...@gmail.com> wrote:
> Should have said that I was thinking about this in terms of a command. I
> was under the impression that commands should use the read model. I also
> thought any business decisions should be done using the aggregates. So, if
> i wanted to make a business decision based on a manager and their employees
> how would I get the list of employees based on a "foreign key"?
>
> On Monday, 20 April 2015 11:59:14 UTC+1, Colin Yates wrote:
>>