๐ A repository to learn and explore the basics of RabbitMQ with C# .NET.
This repository demonstrates how to integrate RabbitMQ, a powerful message broker, with .NET applications. It provides simple examples of publishing and consuming messages to help you understand the core concepts of RabbitMQ.
- Message Publishing: Learn how to publish messages to RabbitMQ exchanges.
- Message Consumption: Understand how to create consumers for RabbitMQ queues.
- Basic Concepts: Explore exchanges, queues, bindings, and routing keys.
- C# Integration: Examples are implemented using C# with the RabbitMQ.Client library.
To follow along with this repository, you'll need:
- RabbitMQ Server: Download and install RabbitMQ from here. Ensure the server is running locally or accessible remotely.
- .NET SDK: Install the latest .NET SDK from dotnet.microsoft.com.
- Docker (Optional): If you prefer, you can run RabbitMQ via Docker:
docker run -d --hostname rabbitmq --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management
-
Clone the repository:
git clone https://github.com/GuilhermeStracini/hello-world-rabbitmq.git cd hello-world-rabbitmq
-
Build and run the solution:
dotnet build dotnet run
-
Follow the console output to understand how messages are sent to and received from RabbitMQ.
This repository is licensed under the MIT License.
Contributions are welcome! Please feel free to submit issues or pull requests to improve this project.