EventDriven Architecture(EDA) (original) (raw)

Event-Driven Architecture(EDA)

Last Updated : 13 May, 2026

Event-Driven Architecture (EDA) is a software design approach where system components communicate by producing and responding to events, such as user actions or system state changes. Components are loosely coupled, allowing them to operate independently while reacting to events in real time.

**Example: In an e-commerce system, when a customer places an order, an Order Placed event is generated. Different services like payment processing, inventory management, and email notifications don’t constantly check the order system; instead, they independently respond when the event occurs.

event_broker

In the diagram

Real World Applications

Event-Driven Architecture (EDA) is widely used across industries where real-time processing, scalability, and system integration are important.

Importance

Event-Driven Architecture (EDA) holds significant importance in system design for several reasons:

Events in Event-Driven Architecture

Events are crucial components of Event-Driven Architecture (EDA) that denote significant events or system modifications. Below are the key points about events in EDA:

Components

Event-Driven Architecture (EDA) has several key elements that helps in facilitating communication and respond to events. The following are the main components of an event-driven architecture:

1. Event Source

An event source is any component that generates events when a significant action or state change occurs.

2. Event

An event represents a meaningful occurrence or change in the system state.

3. Event Broker / Event Bus

The event broker acts as a central hub for managing event communication.

4. Publisher

A publisher is responsible for emitting events to the event bus.

5. Subscriber

A subscriber registers interest in specific types of events.

Supporting Patterns

These are additional roles and patterns that help in processing and managing events effectively but are not core components of Event-Driven Architecture.

1. Event Handler

An event handler contains the logic for processing received events.

2. Dispatcher

The dispatcher controls how events are delivered within the system.

9. Listener

A listener actively monitors the event bus for specific events.

Challenges

While Event-Driven Architecture (EDA) has many benefits, it also comes with some challenges that are worth considering.

Related Article

Event-Driven Architecture in an E-commerce System