Event-Driven Architecture
Explore how Redis Pub/Sub can facilitate event-driven microservices communication and notifications.
What is Event-Driven Architecture?
Welcome! In this lesson, we'll explore Event-Driven Architecture (EDA) and how Redis Pub/Sub is perfect for it.
EDA is a software design pattern where components communicate by reacting to changes in state, known as events.
- Think of it like a news channel: producers publish news (events), and anyone interested (consumers) can tune in.
Key Concepts of EDA
EDA revolves around three main components:
- Events: A record of something that happened (e.g., 'user registered', 'order placed'). They are immutable facts.
- Event Producers: Services that detect an event and publish it to an event channel.
- Event Consumers: Services that subscribe to event channels and react to specific events.
These components communicate indirectly.
All lessons in this course
- Pattern Matching Subscriptions
- Designing Real-time Chat
- Event-Driven Architecture
- Presence and Online Status Tracking