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.
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 the setup tools installer at https://pypi.python.org/pypi/setuptools.Then, run this command:
>easy_install pip
Now, we can install Pika.
Type these commands into your machine's terminal:
On Linux (Ubuntu) type this at your terminal:
$ sudo pip install...