In short
A messaging pattern where publishers send messages to a channel without knowing who's listening, and subscribers receive messages from channels they're interested in — decouples senders from receivers.
How to learn this
- 1Implement pub/sub using Redis's `PUBLISH`/`SUBSCRIBE` commands.
- 2Use pub/sub to broadcast a WebSocket message across multiple server instances.
- 3Compare pub/sub to a message queue — pub/sub messages aren't persisted for offline subscribers.
More topics at this stop
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.