The only solution that comes to my mind is to replicate the info needed, either by domain events either by running a batch process with a given frequency.
Another problem I have is how does CQRS fit with an in memory database?
My database in memory is just collections of domain objects accessed by repositories called by commands.
But the query part shouldnt access repositories nor deal with domain objects. Queries should access database directly and build dtos for the client. But how to do this if the database is inmemory collections of domain objects???
Thank you.
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/dddcqrs.
For more options, visit https://groups.google.com/d/optout.
Thanks,Rupesh kumar Tiwari
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.
>> email to dddcqrs+unsubscribe@googlegroups.com.
>> Visit this group at https://groups.google.com/group/dddcqrs.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Studying for the Turing test
--
Studying for the Turing test
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.
Alright, thank you.
That was my last thought about it. One hexagon BC for commands and another hexagon BC for querys.
Thanks.
In hexagonal architecture, secondary ports are for letting the inner hexagon communicate with outside world.
So i would consider app services as part of the inner hexagon, not as a primary port, and i would introduce an extra component to be the primary port, that it would just forward the call from the primary adsptee