0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
Pub/Sub (publish/subscribe) is a pattern software systems can use to communicate. It enables architectures that can be more:
In this course, we'll be learning about the advantages and disadvantages of Pub/Sub systems and how to build backend architectures that use them.
Pub/Sub systems are the opposite of point-to-point systems. In point-to-point systems, the sender is painfully aware of the receiver. For example, an HTTP request is point-to-point. The client sends a request directly to the server, and the server sends a response directly back to the client.
Pub/Sub is a messaging pattern where senders of messages (publishers) do not send messages directly to receivers (subscribers). Instead, they just publish to a single broker. The publisher doesn't need to worry about who all the subscribers are. The broker is responsible for delivering a copy of the message to any interested subscribers.
Twitter (X) works like a Pub/Sub system. When you tweet, you don't individually list all of the followers you want to send your tweet to. Instead, you just tweet, and Twitter's servers deliver your tweet to all of your followers.
Which is most like a point-to-point system?