Pika

We'll start with a Python RabbitMQ client called Pika that offers a good balance between low-level and high-level APIs and developer happiness. Other libraries such as py-amqplib and txAMQP are also good to use, but they provide a different kind of balance (mostly towards low-level) and will not be covered here. As always, you are free to try them out, but my recommendation is that you try to do it only after you have grasped a good understanding of Pika.

Installing Pika

Let's install Pika on our workstations.

Before this, let's ensure we have an appropriate package manager already provisioned on our machines.

On Linux (Ubuntu), type this at your terminal:

$ sudo apt-get install python-pip git-core

On Windows, type this:

First, make sure to use ...

Get Mastering RabbitMQ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.