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?
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?