thenativeweb / node-cqrs-domain

Node-cqrs-domain is a node.js module based on nodeEventStore that. It can be very useful as domain component if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.
http://cqrs.js.org/pages/domain.html
MIT License
269 stars 57 forks source link

Same event name in different contexts #145

Closed bikerp closed 5 years ago

bikerp commented 5 years ago

Hi,

let's say I have two different contexts: Books and Services. Both contexts contains Order aggregate. Is it a common practice that same event name exists in different contexts i.e. OrderAccepted? Or the event name should be unique i.e. BookOrderAccepted and ServiceOrderAccepted

Thanks

Pavel

adrai commented 5 years ago

I don’t know if it is common, but yes. It’s totally ok.

bikerp commented 5 years ago

@adrai Thanks