DEV Community

Cover image for RabbitMQ with Nodejs Part 1
lalit292929
lalit292929

Posted on

RabbitMQ with Nodejs Part 1

Hi all,
Before moving on to RabbitMQ and its example in Nodejs, let us first understand what is a message broker.

What is a Message Broker?

A message broker is a software that enables multiple applications to exchange information. The message broker does this by doing multiple things in itself which includes

  1. Getting a new message from an application ie. Publisher
  2. Routing the messages to the queue(s) as per the message's metadata
  3. Maintaining multiple queues for different types of messages
  4. Facilitating applications (Consumers) of subscribing to these queues and receiving relevant messages

What is Rabbit MQ?

According to Wikipedia, RabbitMQ is an open-source message-broker software that originally implemented the Advanced Message Queuing Protocol and has since been extended with a plug-in architecture to support Streaming Text Oriented Messaging Protocol, MQ Telemetry Transport, and other protocols.
It is an open-source message broker that we can use to make our applications communicate using various messaging protocols.

Before starting with the implementation, We should know some of its components which will help us to understand how it works internally and is this the right software for our use case:

  1. Connection
  2. Channel
  3. Exchange
  4. Queue
  5. Publisher
  6. Consumer

We will start with the basic theory of the above mentioned components along with their implementation using Nodejs.

Note: I am writing for the first time and will highly appreciate any feedback or suggestions.
Find me on Linkedin
Part 2

Top comments (1)

Collapse
 
eminarium profile image
Merdan Durdyyev

Good start my friend. Short but informative. Keep writing, keep sharing…