Skip to end of metadata
Go to start of metadata

Introduction

Rabbit MQ is an open source message queue service (https://www.rabbitmq.com/).

It implements AMQP 0-9-1 (https://www.rabbitmq.com/tutorials/amqp-concepts.html).

programming tutorials: https://www.rabbitmq.com/getstarted.html

Installation

For Ubuntu:

 

sudo apt-get install rabbitmq-server
# check service is installed and running
service rabbitmq-server status
# for python clients
sudo pip install pika

 

(for other platforms see installation from the website)

rabbit-cat

rabbit-cat is a light rabbit MQ client in python available in comma.

see rabbit-cat -h for examples

example 1

For receiver run:

 

rabbit-cat listen localhost --queue="queue1"

 

For sender in a separate terminal:

 

echo "hello world!" | rabbit-cat send localhost --queue="queue1" --routing-key="queue1"

 

 

  • No labels