Skip to main content

What is Zeromq? explain the socket types of Zeromq

ZeroMQ is a library used to implement messaging and communication systems between applications and processes - fast and asynchronously.





If you have past experience with other application messaging solutions such as RabbitMQ, it might come a little bit challenging to understand the exact position of ZeroMQ.


When compared to some much larger projects, which offer all necessary parts of enterprise messaging, ZeroMQ remains as just a lightweight and fast tool to craft your own.


ZeroMQ Socket Types


ZeroMQ differs in the way its sockets work. Unlike the synchronous way the
regular sockets work, ZeroMQ’s socket implementation “present an abstraction
of an asynchronous message queue”.


The way these sockets work depend on the type of socket chosen. And flow
of messages being sent depend on the chosen patterns, of which there are four:


  • Request/Reply Pattern: Used for sending a request and receiving subsequent replies for each one sent.


  • Publish/Subscribe Pattern: Used for distributing data from a single process (e.g. publisher) to multiple recipients (e.g. subscribers).


  • Pipeline Pattern: Used for distributing data to connected nodes.


  • Exclusive Pair Pattern: Used for connecting two peers together, forming a pair.



ZeroMQ Transport Types


ZeroMQ offers four different types of transport for communication. These are:

  • In-Process (INPROC): Local (in-process) communication transport.

  • Inter-Process (IPC): Local (inter-process) communication transport.

  • TCP: Unicast communication transport using TCP.

  • PGM: Multicast communication transport using PGM.



Comments

Post a Comment

Popular posts from this blog

What is STP? - Explain Advantages and Disadvantages

The Spanning Tree Protocol is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. STP is a protocol. It actively monitors all links of the network. To finds a redundant link, it uses an algorithm, known as the STA (spanning-tree algorithm). The STA algorithm first creates a topology database then it finds and disables the redundant links. Once redundant links are disabled, only the STP-chosen links remain active. If a new link is added or an existing link is removed, the STP re-runs the STA algorithm and re-adjusts all links to reflect the change. STP (Spanning Tree Protocol) automatically removes layer 2 switching loops by shutting down the redundant links. A redundant link is an additional link between two switches. A redundant link is usually created for backup purposes. Just like every coin has two sides, a redundant link, along with

What are the Advantages and Disadvantages of TCP/UDP ?? Difference between TCP and UDP

As in previous blog we have define and explain about what is TCP and UDP and from now we are moving ahead with Advantages, Disadvantages and Difference of TCP and UDP but for this you have to know about TCP and UDP hence to understand it go for a What is TCP and UDP . Advantage of TCP Here, are pros/benefits of TCP: It helps you to establish/set up a connection between different types of computers. It operates independently of the operating system. It supports many routing-protocols. It enables the internetworking between the organizations. TCP/IP model has a highly scalable client-server architecture. It can be operated independently. Supports several routing protocols. It can be used to establish a connection between two computers. Disadvantages of TCP Here, are disadvantage of using TCP: TCP never conclude a transmission without all data in motion being explicitly asked. You can't use for broadcast or multicast transmission. TCP has no block boundaries, so you