When implementing domain events, if event handlers will be used only for problems with purely domain names; What could you discuss with business experts, or are they open to use by anyone interested in a domain model?
This is most likely best explained by a simple example; look at the Calendar app for employee scheduling.
We may have the following domain events ...
AppointmentAdded AppointmentRemoved AppointmentContentChanged AppointmentMoved
We have handlers for these events, for example, when an appointment is postponed outside of the employees' working hours, we set a warning flag.
Of course, there are application problems that are interested in these events, for example. when an Appointment is added to the calendar, we must add it to the Unit of Work so that we can commit the changes later.
Should these applications be consumers of domain events, or should we raise and handle individual system events instead?
architecture domain-driven-design
Andronicus
source share