Integrating BCs - in real life
"atle03" <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
Hi all, If one application service in one bounded context (BC) needs to access the domain models for several BCs, how will this look like in the runtime environment? I see two alternatives: 1. The various BCs are hosted/deployed separately. In this case, operations on "remote" domain models could be accessed through (web) services or similar. A side effect is that transactions cannot span such remote operations, and that domain operations must be wrapped in a service layer. Web service hell? 2. The various referred domain models are deployed with the BC that refers to them. This means that calls are in-process. BUT this also means that the "host " BC must hold connection strings and optionally other config for all the domain models (repositories) it uses. Config hell? Both options seem to have large drawbacks to me. Is there something I have missed? Atle ------------------------------------