ADVANTAGES AND DISADVANTAGES OF PUB/SUB

ADVANTAGES

Loose Coupling

Publishers do not know about the existence of the subscribers so that both systems can operate independently of each other. By this method, the service dependencies which are present in traditional coupling are completely abolished. A Publisher doesn’t need to know about -

    

    

    

They will be able to work independently and this will allow them to develop both separately without worrying about any number of ripple effects, states, or implementation. 

Scalability

Pub/sub messaging will scale to volumes beyond the limited capabilities of a single traditional data-gathering center. This level of unprecedented scalability is primarily due to parallel operations, message caching, tree-based routing, and multiple other features built into the pub/sub model.

But for all its advantages, Scalability has a limit. If the number of nodes and messages are increased, then the chances of experiencing a load surge or slowdown increase dramatically. Also, the advantages of the pub/sub model can sometimes be overshadowed by its own message delivery issues that it experiences sporadically.

 

DISADVANTAGES

  • Publishers do not have any knowledge of the status of the subscriber. You cannot be sure if everything is alright on the other end. As the number of subscribers and publishers increases, the rapidly increasing number of messages being interchanged leads to several instabilities in this architecture and it can ultimately buckle under that load.
  • Intruders (malicious publishers) can invade the system and breach it; this leads to inappropriate messages being published and subscribers get messages that they should not receive.
  • The publisher can only deliver messages for a certain amount of time without knowing the messages are received or not.
  • Since the publisher does not know about subscribers, it will think that the appropriate subscriber is listening. If a subscriber misses something important, it can be bad for the productions.

Comments

Popular posts from this blog

DATA FLOW IN PUB/SUB

INTRODUCTION TO CLOUD PUB/SUB