Results 1 to 2 of 2

Thread: [RESOLVED] Domain driven design (DDD) - nesting domains

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Resolved [RESOLVED] Domain driven design (DDD) - nesting domains

    Hi

    Any thought on how to do a domain driven design architecture where one domain type is effectively nested within another?
    For example if I have a [Fund] domain that has all the operations pertaining to a fund, but that fund has multiple [Fund Accounts] that wholly belong to the fund, but also have events that pertain to them alone?

    How do I communicate/model something happening within the fund account (nested domain) that impacts the fund (outer domain) - for example let's say an investor adds a deposit to their fund account - this will increase the value of the fund accordingly. Should I look to have the fund account event trigger a fund level event, or should the fund aggregate read the event stream(s) of the fund accounts?

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    Re: Domain driven design (DDD) - nesting domains

    Actually - looking at this again I think that if a domain is entirely nested within another then only the top-level domain needs to exist. It is only where there is an "overlap" that a separate domain and some form of inter-domain communication are required.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width