I am looking for your opinion on how to handle an invariant such as "each Student's email must be unique".
If you move the Aggregate Root to be the full list of students, it could deliver poor performance, and would be a big change just to accommodate this rule.
Is this a rule that would have to be checked in the domain services or application services layer?
Hi Vladimir,
I am looking for your opinion on how to handle an invariant such as "each Student's email must be unique".
If you move the Aggregate Root to be the full list of students, it could deliver poor performance, and would be a big change just to accommodate this rule.
Is this a rule that would have to be checked in the domain services or application services layer?
Any tips or ideas would be helpful
Thanks for the course!
Darren