Publish and subscribe
When an order is placed, the order service calls email, analytics, the warehouse and loyalty points. Each new team that wants to know asks the order team to add one more call. Pub/sub flips it: the order service announces what happened, once, and anyone who cares listens.
In this lesson you'll learn to
- Explain how a topic delivers each message to every subscriber, and how that differs from a queue.
- Explain how pub/sub lets new consumers join without changing the publisher, and write events as facts.
- Compare fire-and-forget pub/sub with durable subscriptions, and what each does when a subscriber is offline or slow.
- Treat events as a public contract, with versioning, filtering and ordering in mind.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.