DDD - Share or duplicate a value object to be used between two aggregate roots?

2.8k views Asked by At

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!

1

There are 1 answers

1
plalx On BEST ANSWER

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.