0PricingLogin
Redis Caching & Messaging (Pub/Sub, Streams) · Lesson

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

  1. Pattern Matching Subscriptions
  2. Designing Real-time Chat
  3. Event-Driven Architecture
  4. Presence and Online Status Tracking
← Back to Redis Caching & Messaging (Pub/Sub, Streams)