Examples from Other Domains
Just in case you need to build something other than exactly the same system we build in this book, let’s get an idea of what events from other domains might look like.
If you’re working on an e-commerce solution, you probably need to allow users to add items to carts, and also provide shipping and billing information. These are domain events. Maybe you’ll then have ItemAddedToCart with a payload identifying the item and the price the item had at the time it was added.
Sometimes information that comes from a single screen might actually be hiding more than one event. I’ve seen single screens where I enter shipping and billing information. I’d be surprised if those were handled by the same Component, since they’re ...
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