Pages

Showing posts with label rabbit-mq. Show all posts
Showing posts with label rabbit-mq. Show all posts

Monday, March 31, 2014

Exchange types in an AMQP messaging protocol

There are several types of exchanges in AMQP protocol

  • fanout - messages are published to all queues
  • direct - messages are delivered if the message's routing key is identical to the queue's binding key.
  • topic - The exchange routes messages to the relevant queue or queues, depending on matches between the routing and binding keys
  • header - headers of the messages, and the binding key constraints of the queues are used to determine the correct queue/queues
A good article about the above is explained in detail in the following article.

Friday, March 28, 2014

RabbitMQ commands

To check the status of the RabbitMQ issue
sudo rabbitmqctl status

To stop the message broker issue,
sudo rabbitmqctl stop

To restart the message broker issue,
sudo invoke-rc.d rabbitmq-server start