RabbitMQ is a robust message-queuing software, often referred to as a message broker or queue manager. This repository provides a comprehensive guide on leveraging RabbitMQ for effective communication in distributed systems.
Before you begin, ensure you have the following prerequisites installed on your system:
-
Clone the repository
git clone https://github.com/Tomdieu/rabbitmq-tutorial.git
-
Run rabbitmq image
docker compose up
Navigate to the example directory of your choice:
cd direct-exchange
Execute the following command to run the producer:
python main.py
Execute the following command to run the consumer:
Run consumer
python consumer.py
Feel free to explore other examples in the repository for a deeper understanding of RabbitMQ and its features.
By following this tutorial, you'll gain hands-on experience with RabbitMQ, enabling you to enhance communication and messaging in your applications. If you encounter any issues or have questions, please refer to the documentation or create an issue in this repository.
Happy coding!