Things happen in applications—a lot of things. Some are more interesting than others. Events capture this information, package it up in a nice and clear format/structure, and rely on a broadcasting mechanism or dispatcher to dispatch the event to the rest of the application. We have already gotten a taste of events in Chapter 5. This chapter will build on that information and provide you with additional context and discussion on domain events specifically.
Which components actually get notified about a particular event is based on a subscriber or Observer or PubSub pattern (they all mean roughly ...