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

Introduction to Pub/Sub

Understand the publish/subscribe messaging model and its advantages for decoupled communication.

What is Pub/Sub?

Welcome to Redis Pub/Sub! Pub/Sub, short for Publish/Subscribe, is a messaging pattern where senders (publishers) don't directly send messages to specific receivers (subscribers).

Instead, messages are sent to an intermediary, called a channel or topic. Subscribers then listen to these channels to receive messages.

The Publisher's Role

In the Pub/Sub model, a publisher is the entity that creates and sends messages. Publishers don't need to know who (or if anyone) is listening.

  • They focus only on sending messages to a specific channel.
  • This makes the system flexible and scalable.

All lessons in this course

  1. Introduction to Pub/Sub
  2. Redis Pub/Sub Mechanics
  3. Broadcasting Simple Messages
  4. Channels vs Keyspace Notifications
← Back to Redis Caching & Messaging (Pub/Sub, Streams)