RabbitMQ based messaging simulator for Distributed Algorithms
This is a temporary version, improvements expected before 1st of March, 2020.
Simulate many independent algorithm nodes on a single or multiple pc, while being able to see and control the messaging traffic.
- Install RabbitMQ-docker or RabbitMQ-server (as per https://www.rabbitmq.com/download.html)
- Install python 3.7 (3.8 has some warnings in asyncio)
- Install pipenv
- Activate pipenv environment (f.e. Example)
- Make sure: Install dependencies from Pipfile by running
pipenv install(asyncio, aio_pika, etc.) - Run
docker-compose up -dor start RabbitMQ-server (see step 1) - Run main.py with
python -m main.py
Optional:
- open VSCode and run project from there
- open PyCharm and run project from there
- open any command prompt and run with step 7)