in our course management system split into separate bounded contexts, weve got a bit of an issue with how enrollment references student data. its tricky because while courses and enrollments are owned by one context - lets call them the "course" owners - the students belong to another - "student" owner.
this means when making changes or validating info for enrollees (like ensuring they meet course prerequisites), we run into a bit of an ownership conundrum. its like trying to decide who gets custody in this case: does enrollment report directly back, or do both contexts need some kind of handshake?
anyone else bumping up against similar issues? how are you handling these aggregate references between different owners?
any tips would be super helpful!
https://dzone.com/articles/aggregate-reference-problem