Skip to content

GuilhermeStracini/hello-world-rabbitmq

Repository files navigation

Hello World RabbitMQ

๐Ÿ“š A repository to learn and explore the basics of RabbitMQ with C# .NET.

wakatime Maintainability Test Coverage CodeFactor GitHub license GitHub last commit


About

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.


Features

  • 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.

Prerequisites

To follow along with this repository, you'll need:

  1. RabbitMQ Server: Download and install RabbitMQ from here. Ensure the server is running locally or accessible remotely.
  2. .NET SDK: Install the latest .NET SDK from dotnet.microsoft.com.
  3. 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

Getting Started

  1. Clone the repository:

    git clone https://github.com/GuilhermeStracini/hello-world-rabbitmq.git
    cd hello-world-rabbitmq
  2. Build and run the solution:

    dotnet build
    dotnet run
  3. Follow the console output to understand how messages are sent to and received from RabbitMQ.


Resources


License

This repository is licensed under the MIT License.


Contributing

Contributions are welcome! Please feel free to submit issues or pull requests to improve this project.