Re: Sharing Aggregate Roots between Bounded Contexts
"wonderfulworldofpingpong" <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <[email protected]> |
Thanks Paul. So, even though it causes code duplication but it is required that two BCs need to have it's own aggregates else it needs to be in a shared kernel. Am I right? Is it okay to share the implementation of a repository? --- In [email protected], Paul Rayner <paul@...> wrote: > > Not ok. There is one exception, which is Shared Kernel. > > On Sun, May 26, 2013 at 5:13 AM, wonderfulworldofpingpong < > varghese.pallathu@...> wrote: > > > ** > > > > > > Is it okay to share Aggregate roots between bounded contexts? For example, > > a 'contact' aggregate root shared between two BCs like Project Management > > and Contact Management? > > > > When an aggregate root is shared between Bounded Contexts, the repository > > also can be shared. > > > > Is this domains corruption or is it within DDD best practice? > > > > > > > ------------------------------------