All Items All Items
Domain Events Limit Coupling
Events are an effective mechanism to decouple features.
Instead of hard-wiring state changes across the application, state changes are published in the form of events. Adding a new state change is then simple and does not affect existing functionality.
Events can also be used to update state across multiple applications. Such applications could be running as Microservices connected to the same message bus. An event published by one microservice can be picked up by one or more MIcroservices across the network and acted on to update the state in their individual domains.