RE: Re: How-to implement the e-Commerce-System found in the "IDDD" book

Mauro Servienti <[email protected]>
Newsgroups gmane.comp.programming.domain-driven-design
Message-ID <0D71C042265E7B4D871B59569C7774D75A4C5AE2@AMXPRD0310MB390.eurprd03.prod.outlook.com>
But, if in your scenario makes sense to regenerate the order each time it is opened you can issue a query to the product BC, via a service exposed by the product BC using a dedicated read model for the order - product communication, in any case the order aggregate does not need the product aggregate for this task.

The problem you have to face is: since you can totally isolate (different processes on different servers) BCs what happens when you query for an order and the product BC is not available?

There are scenario in which makes sense that the order is available with stale information and other where you need all the time as much as possible fresh information and others where you _must_ have fresh information.

.m

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of wonderfulworldofpingpong
Sent: lunedì 3 giugno 2013 22.43
To: [email protected]
Subject: [domaindrivendesign] Re: How-to implement the e-Commerce-System found in the "IDDD" book

I don't agree to this. Regenerating an order requires a query to the BC that contains the Product.

> -          Independency: Order-BC should not depend on the availability of the Product-BC to work;




------------------------------------

Yahoo! Groups Links







------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.