Domain Events and Ubiquitous Language

Consider the differences in the Ubiquitous Language when we discuss the side effects of relocating a customer. The Event makes the concept explicit, whereas previously, the changes that occurred within an Aggregate or between multiple Aggregates were left as an implicit concept that needed to be explored and defined. As an example, in most systems, when a side effect occurs on a library like Hibernate or the Entity Framework, it doesn't affect the Domain. These Events are implicit and transparent from the client point of view. The introduction of the Event makes the concept explicit and part of the Ubiquitous Language. Relocating a customer doesn't just change some stuff; rather it produces a CustomerRelocatedEvent that is explicitly defined within the language.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset