Skip to content

andreydani/rabbitMQtest

Repository files navigation

rabbitMQtest

Test of RabbitMQ in Python, using docker container for execution of RabbitMQ, consumer.py and producer.py. The files are bundled together using docker-compose

This is simple messaging test for RabbitMQ.

consumer.py

This script waits for messages.

producer.py

This script sends one message and leaves.

Requirements:

  • Python
  • Erlang/OTP
  • RabbitMQ
  • Docker

Expected results on consumer.py

python.exe C:\projetos\rabbitMQtest\consumer.py 
 [*] Waiting for messages. To exit press CTRL+C
 [x] Received b'Hello World!'
 [x] Received b'Hello World!'
 [x] Received b'Hello World!'
 [x] Received b'Hello World!'

Expected results on producer.py

python.exe C:\projetos\geolocation\producer.py 
 [x] Sent 'Hello World!'

About

Simple test of RabbitMQ in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published