Introduction of Rabbitmq

Prarthanawickramarathne1
2 min readJul 22, 2020

--

What is rabbitmq?

RabbitMQ is a message-queueing software also known as a message broker or queue manager. Simply said; it is software where queues are defined, to which applications connect in order to transfer a message or messages.

Figure 01

Benefits of use of rabbitmq

  • Delivery and order guarantee
  • Redundancy
  • Decoupling
  • Scalability

How Rabbitmq works?

Figure 02

Here is an example code for work queue

There are two java classes called:

  • Seneder.java
  • Receiver.java

Sender.java

Figure 03

receiver.java

Figure 04

Output of receiver console before sending the message

Figure 05

Output of sender console after sending the message

Figure 06

Output of receiver console after receiving the message

Figure 07

--

--

Prarthanawickramarathne1
Prarthanawickramarathne1

Written by Prarthanawickramarathne1

Undergratuate Software Engineering Student in university of Kelaniya

No responses yet