Software → Software Design
Domain Event
A domain-significant fact that records something that has happened within a bounded context.
Motivation
A Domain Event expresses a meaningful business occurrence using the language of the domain.
Practical use
Domain events can trigger local policies, communicate changes to other bounded contexts, and preserve an auditable record of important facts.
Common mistakes
- Publishing low-level CRUD events instead of domain facts.
- Treating an event as a command.
- Changing the meaning of an event after consumers depend on it.