joshuamhtsang / rabbitmq_with_threading

Proof of concept for using threading in RabbitMQ consumers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rabbitmq_with_threading

Proof of concept for using threading in RabbitMQ consumers

Build the RabbitMQ image

$ docker build --tag rabbitmq:try_threading .

$ docker run -d --hostname my-rabbit --name rabbitmq_threading_test -p 8080:15672 -p 5672:5672 rabbitmq:try_threading

You can now login to the Management UI at: http://localhost:8080/ For login use 'joshua' and 'guest' (this can be changed if you desire in the UI).

Now you can spin up the consumer:

$ python3 consumer.py

Now you can publish the following message into the 'eric.request' queue:

{ "number": 10 }

About

Proof of concept for using threading in RabbitMQ consumers


Languages

Language:Python 93.8%Language:Dockerfile 6.2%