Integration Event vs Notification Event #168
-
Hi @kgrzybek, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello, @mehdihadeli. As for differences in code, Domain events are part of Domain layer, Domain Event Notification - Application layer and each module declares its Integration Events in separate project |
Beta Was this translation helpful? Give feedback.
Hello, @mehdihadeli.
Domain Event Notification is based on the DDD tactical pattern Domain event and is a way to handle a domain event outside the transaction which it was published in. So Domain Event Notification "lives" inside Bounded context(BC). Integration Event on the contrary is a part of Published language of BC and is a way for different BCs to communicate with each other.
As for differences in code, Domain events are part of Domain layer, Domain Event Notification - Application layer and each module declares its Integration Events in separate project
Xxx.IntegrationEvents
. Moreover Domain events(and so Domain Event Notification) can contain Value objects(typed Id for example) b…