This repository contains examples of using Python 3 and Kombu to interact with RabbitMQ. I created it to contain code used in the following articles I have written:
- Talking to RabbitMQ with Python and Kombu
- Building Robust RabbitMQ Consumers with Python and Kombu: Part 1
- Building Robust RabbitMQ Consumers with Python and Kombu: Part 2
For these example to run it is assumed that RabbitMQ is installed and running locally on port 5672.
Run:
pip install -r requirements.txt
Run the basic producer to add a message to a queue called "example-queue":
python basic-producer.py
Then run the basic consumer that will print out the message to the terminal:
python basic-consumer.py