top of page

Get auto trading tips and tricks from our experts. Join our newsletter now

Thanks for submitting!

How to run Docker RabbitMQ and Python Pika package

Here are the instructions to get a message queue working with Docker and RabbitMQ on MacOs:

Free trading books or learn algo trading

  1. Install Docker onto your desktop like Mac

  2. Test it

  3. Test Rabbit MQ but note: Prerequisites This tutorial assumes RabbitMQ is installed and running on localhost on standard port (5672). In case you use a different host, port or credentials, connections settings would require adjusting.

  4. You can launch RabbitMQ as instructed here but run in a terminal:

docker run -it –rm –name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management

4 Follow instructions and understand to run and Python scripts

There goes that idea about hosting this combo on a remost hosted cloud server like I got:

We don’t really recommend using Docker on a server with a control panel, particularly cPanel. It’s possible that Docker could interfere with cPanel services and then we wouldn’t be able to directly support that.

It might be better to look at an unmanaged Cloud server that doesn’t have a control panel and all the various services running on common service ports by default.

In fact, most of us techs have personal servers without control panels so we can run applications that don’t play nice with a control panel.

So my only solution is to look at ZeroMQ

The easiest example of Pub Sub model is

This results in very very fast queue connection!

0 views0 comments


bottom of page