Publish-Subscribe messaging (or pub/sub messaging) is an asynchronous one-to-many communication model that makes it easy for services to subscribe to events, and for publishers to communicate with its subscribers.

The pub/sub messaging model has four key components:

  • Messages: pieces of information sent from sender to receiver. The data can be anything from strings or numbers to complex objects representing a video, audio or other digital content;
  • Topics: each message has a topic associated, which is useful for the receivers to only subscribe to a messages that belong to certain topics;
  • Subscribers: they are receivers which registered to topics of interest.
  • Publishers: they are the components which actually send the message. They create a message with a topic attatched and send it only once to all subscribers of that topic.

Note

It follows the same principles as the Pub-Sub Design Pattern in coding, and so publishers don’t need to know who the subscribers are, and vice versa.

Features

#todo: take them from here: What is Pub/Sub Messaging?


#software/cloud resources: