Description
A software architecture paradigm promoting the production, detection, consumption of, and reaction to events. Systems communicate asynchronously via events.
Where to use
- Decoupling microservices. \n
- Real-time applications. \n
- Scalable systems.
Real World Example
When a user updates their profile, a 'ProfileUpdated' event is emitted. The Search Service, Email Service, and Analytics Service all independently react to this event.
Code Example
# Code Concept for Event-Driven Architecture (EDA)
# This pattern is architectural.
class Service:
def execute(self):
# Implementation logic
pass
