What is Event-Driven Architecture
Architecture based on events
Event-Driven Architecture (EDA) is an architectural pattern where system components interact through generating and processing events, providing loose coupling and high scalability.
Key Components
- Event producers — generate events when state changes
- Message broker — routes events (Kafka, RabbitMQ)
- Event consumers — process and react to events
- Event Store — storing event history
EDA Patterns
- Pub/Sub — publish-subscribe to events
- Event Sourcing — storing state as sequence of events
- CQRS — command query responsibility segregation
- Saga — distributed transactions
Benefits
- Loose coupling of services
- Horizontal scaling
- Fault tolerance
- Asynchronous processing