Discovering Domain Messages
Whenever you add new functionality to a message-based system, the first step is discovering the domain messages that model the new functionality. Remember that we’ve traded implicit coupling in the database for an explicit communication contract captured in the events. Changes to this contract are difficult. They define communication between two or more components, and changing this contract necessarily propagates into any component using it. It’s easier to change an explicit contract than it is to change a monolith’s implicit contract, but we still want to get it as correct as possible at first.
What events do we need to store state? What commands and events can cause those events to occur? What entities emerge when ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access