
Mastering ABP Framework
By :

Domain events are used to inform other components and services about an important change to a domain object so that they can take action.
ABP Framework provides two types of event buses to publish domain events, each with a different purpose:
Publishing and handling events are pretty easy with ABP Framework. The next section shows how to work with the local event bus, and then we will look at the distributed event bus.
A local event handler is executed in the same unit of work (in the same local database transaction). If you are building a monolith application or want to handle events in the same service, the local event bus is fast and safe to use because it works in the same process.
Assume that you want to publish a local event when an...