Rabbitmq is very usefull when moving messages between 2 or more apps.
It’s possible to use Rabbitmq with Python by using the Pika module. Pika allows sending messages in synchronous or asynchronous fashions.
When recieving, it’s also possible to use Pika, and we’ll use Tornado to manage those messages in event mode.
Installing Pika & Tornado:
Following code snippets shows up how to send messages using a producer and to recieve them with a consumer.
Producer
Running it:
Consumer
Recieving it:
For more information, there are an excellent tutorial on the Rabbitmq website.