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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With