Event Driven Architecture (EDA)

what is an event?

An event is a data point it will identify the behavior of a state, Events do store relevant information in their payloads to describe and record the state changes or behavioral actions within a system.

Event Driven Architecture:

This architecture using the events, these events as way to communicate the application within the system. These events maintain decoupled. Events are used in the Message Brokers where publisher will trigger an event and this event is consumed by consumers. And these consumers are also decoupled. EDA is simply a way of achieving loose coupling between services within a system.

Challanges:

-> Guaranteed Delivery

-> Event Driven systems are complex

-> Exactly Onces, in -order processing of events

Event Sourcing

In even driven architecture it will stores only the current state of events, in event sourcing it maintains the history of records of an events which is present in the event log.