Skip to main content

Posts

Showing posts from February 7, 2021

Do you know about pub/sub messaging concept?

Basically Pub/sub is shorthand for publish/subscribe messaging, an asynchronous communication method in which messages are exchanged between applications without knowing the identity of the sender or recipient. Basic Concept of pub/sub: Four core concepts make up the pub/sub model: Topic   – An intermediary channel that maintains a list of subscribers to relay messages to that are received from publishers Message   – Serialized messages sent to a topic by a publisher which has no knowledge of the subscribers Publisher   – The application that publishes a message to a topic Subscriber   – An application that registers itself with the desired topic in order to receive the appropriate messages How Pub/Sub Works In the overview we covered how a publisher sends a message to a topic and how the topic forwards the message to the appropriate subscriber. From a topology point of view it is a simple process. When it comes to coding the publish or the subscribe process the mod...