Events

Project Structure

Dependency Graph

Sub-project:

Introduction

From a software perspective, an event refers to an action or occurrence recognized by software that may be handled by the software itself, by a particular component, or through external interaction. Often, these events can affect the flow of execution within apps, triggering different processes or actions based on the occurrence of specific conditions. The concept of events is fundamental to many aspects of modern software design and is crucial to creating interactive, responsive, and asynchronous systems.

©Domain Events in DDD and Domain vs Integration Events in Microservices Architecture

Listeners and Handlers: Software components can register to listen for specific types of events. Once registered, these components (often called listeners or handlers) will react when an event they are interested in occurs. This is often described as “publish/subscribe” model where components subscribe to specific events and react when those events are published.