Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 761 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 761 Bytes

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!'