How Take Action For "Side Effects" #342
-
Say suppose we have a MeetingCreatedDomainEvent, man pinpoint in DDD and event programming i think is how to handle side effects. I mean how to handle one change in domain/sub domain at other domains (domains in same module or other modules). When a MeetingCreatedDomainEvent is fired there might be a notification which corresponds to the domain event (Say suppose MeetingCreatedNotification) .A notification we can hava a notification handler. But what happens if i need to change two or more modules? Can there be only one notification with one handler only? Or one notification with multiple handlers? What is the suggested way |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Both domain events and notification events can have multiple handlers — and that’s exactly the point. It keeps the system decoupled and scalable.
Example:
See also module integration |
Beta Was this translation helpful? Give feedback.
Both domain events and notification events can have multiple handlers — and that’s exactly the point. It keeps the system decoupled and scalable.
Example:
MeetingCreatedDomainEvent
→ multiple internal handlersMeetingCreatedNotification
→ external side effectsMeetingCreatedIntegrationEvent
→ published across modulesSee also module integration