rsouza01 / rabbitmq-sidecar-poc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RabbitMQ POC

Install

  • Create and activate the virtual environment:
$ python -m venv venv
$ source ./venv/bin/activate
  • Install dependencies:
$ pip install -r ./requirements.txt

How to run

  • Start the RabbitMQ
$ docker-compose -f docker-compose.yml up -d
  • Subscribe to one of the queues (nse_queue | nyse_queue)
$ ./src/subscriber.py <QUEUE-NAME> nse.*
$ ./src/subscriber.py nse_queue nse.*
$ ./src/subscriber.py nyse_queue nyse.*
  • Publish
$ ./src/producer.py nse.nifty 10
  • Spin down the stack
$ docker-compose -f docker-compose.yml down

References

About

License:MIT License


Languages

Language:Python 100.0%