Thursday, 3 January 2019

Plugins

Management Plugin

The rabbitmq-management plugin provides an HTTP-based API for management and monitoring of RabbitMQ nodes and clusters, along with a browser-based UI and a command line tool, rabbitmqadmin.

Use below command to enable
rabbitmq-plugins enable rabbitmq_management.

The management UI can be accessed using a Web browser at http://{node-hostname}:15672/ 

Event Exchange Plugin

rabbitmq-event-exchange is a plugin that consumes internal events and re-publishes them to a topic exchange, thus exposing the events to clients (applications).

Use the below command to activate it
rabbitmq-plugins enable rabbitmq_event_exchange

Introduction

RabbitMQ is a post box, a post office and a postman.
The major difference between RabbitMQ and the post office is that it doesn't deal with paper, instead it accepts, stores and forwards binary blobs of data ‒ messages

Producer

Producing means nothing more than sending. A program that sends messages is a producer.
 
A queue is the name for a post box which lives inside RabbitMQ. Although messages flow through RabbitMQ and your applications, they can only be stored inside a queue. A queue is only bound by the host's memory & disk limits, it's essentially a large message buffer. Many producers can send messages that go to one queue, and many consumers can try to receive data from one queue. This is how we represent a queue: 

Consuming has a similar meaning to receiving. A consumer is a program that mostly waits to receive messages: 
Note that the producer, consumer, and broker do not have to reside on the same host; indeed in most applications they don't. An application can be both a producer and consumer, too.

Installation

Installation on Docker Container


Open Terminal
Loign using

  docker login
      Username: xxx
       pwd: xxxxx
Run below command
$ docker run -d --hostname my-rabbit --name some-rabbit rabbitmq:3-management

If need outside the host
$ docker run -d --hostname my-rabbit --name some-rabbit -p 8080:15672 rabbitmq:3-management

Open in browser

Installation on MAC

  1. Install Brew https://brew.sh
  2. How to Install Homebrew on Mac OS X + Getting Started with Homebrew
  3. After installation to start Rabbitmq every time with MAC
    MADHUs-MacBook-Air:~ madhunadamala$ brew services start rabbitmq
    To start rabbitmq when ever you want then :   rabbitmq-server
    Guest
    guest