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
- Getting a new message from an application ie. Publisher
- Routing the messages to the queue(s) as per the message's metadata
- Maintaining multiple queues for different types of messages
- 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:
- Connection
- Channel
- Exchange
- Queue
- Publisher
- 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)
Good start my friend. Short but informative. Keep writing, keep sharing…