If I have a payment value object can it be shared by two different aggregate roots? or should I duplicate it?
Both options feel wrong!
If I have a payment value object can it be shared by two different aggregate roots? or should I duplicate it?
Both options feel wrong!
As long as your VO is immutable, you can share it without any issues. However, Evans prohibits sharing mutable VOs and I think you will also agree with that.