Heuristics

Domain Events Must Carry Their Own Context

Authors: Krisztina Hirth, Andrea Magnorsky, Kenny Schwegler

Submitter: Krisztina Hirth

How can we determine if an event is a valuable Domain Event or just technical noise?

A true Domain Event communicates a significant business occurrence and must contain sufficient context for consumers to act without querying the source system. If consumers frequently need to ask 'why' or 'what does this mean', the event is a poorly designed technical notification. It must report on the business, not the implementation.

Examples

The team published technical events that were like log entries, forcing consumers to ask for more information. A proper domain event would embed the business reason and context, making it independently useful.

 

Tags

Follow us

Read our latest news from Virtual DDD on any of these social networks!

Recent heuristics

Discussed content

The true cost of “The simplest thing to do”