Types of events
Let’s cover the kinds of events we will be learning about and using along the journey to develop a fully event-driven application by the end of the book.
In an event-driven application and even in an application that is not event-driven, you will encounter several different kinds of events:
- Domain events – synchronous events that come from domain-driven design
- Event sourcing events – serialized events that record state changes for an aggregate
- Integration events – events that exchange state with other components of an application
Domain events
A domain event is a concept that comes from domain-driven design. It is used to inform other parts of a bounded context about state changes. The events can be handled asynchronously but will most often be handled synchronously within the same process that spawned them.
We will be learning about domain events in the next section, Refactoring side effects with domain events...