moduledomain-driven-designdomain-events

DDD: Where to Place Domain Events


I just read Vernon's book "Implementing Domain-Driven Design". What I couldn't find is where to put your Domain Event's classes.

It's not a big concern but it would be nice to know what some of you did and how it worked out.

Thanks in advance!


Solution

  • For my service bus messages I have a separate assembly (being in the C# world) along the lines of MainNamespace.Messages. Any domain events that need to go across the wire would be in that assembly also.

    If, however, you intend mapping the domain events to service bus events the domain events could be in the domain assembly.