Agenda:
- Microservices Architecture
- Command and Query
- Event
- Event-Driven Architecture (EDA)
- Producer
- Channel
- Consumer
- Advantages of Event-Driven Architecture
- Orchestration and Choreography
- Event Sourcing Pattern
- CQRS Pattern
- When to use Event Sourcing and CQRS
- Stateless EDA
- Stateful EDA
- Event Streaming
- Correlation Id
- Mixing EDA with Request/Response
- Events as Source of Truth
- The Saga Pattern
1. Microservices Architecture
- Based on loosely coupled services.
- Each service is in its own process.
- Lightweight communication protocols.
- Polyglot – no platform dependency between services.
Replaces 2 legacy architectures as Monolith and SOA (Service Oriented Architecture).
The most important part in the EDA is the microservices communication. Which is dictated performance, and scalability. So the Event Driven Architecture handles the communication part.