Kafka

Publish-subscribe messaging System

Publish-subscribe messaging System

Here, contrary to the queues, messages remain in a topic. The users can subscribe to a topic and can consume all messages within that topic. In this system, message producers are referred to as Publishers whereas consumers of messages are known as Subscribers. For instance, Dish TV is an excellent real-life example of the publish-subscribe system. Subscribers can subscribe to any number of channels by different publishers.