eastOffice / MsgBrokerTest

Hello World

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Msgbroker Test

A HelloWorld Program For A Msgbroker.

Dependency

MacOS

  1. Python 3

brew install python3

  1. Pika

pip install pika

  1. RabbitMQ

brew install rabbitmq

  1. MongoDB

brew install mongodb

Debian/Ubuntu

How to Run

Debian/Ubuntu 18.04

  1. Start All Service

service rabbitmq-server start

  1. Initial Receiver

python Receiver.py

  1. Run Sender

python SenderStart.py

The results of the requests is on the commandline.

Edit File

  1. Scheduler Type

Users can change the scheduler type in the SenderStart.py. Fill the variable 'Scheduler' with the scheduler type

  1. Request's File

Users can link your file with nb-delay of requets in SenderStart.py. Fill the variable 'RequestsNB_FILE' with the file address

  1. Results

Users can see the results in the commandline windows of Receiver.py.

About

Hello World

License:MIT License


Languages

Language:Python 100.0%