Introduction
Pub/sub and streams help different parts of a program talk to each other by sending messages. They do this in different ways to fit different needs.
You want to send a quick message to many listeners without saving the message.
You need to keep a history of messages so new listeners can see old messages.
You want to make sure every listener gets every message, even if they were offline.
You want a simple way to broadcast updates that don't need to be stored.
You want to process messages in order and keep track of what was read.