A simple Web API project using RabbitMQ pub-sub concepts.
First of all, make sure you have docker installed and MySQL and RabbitMQ containers running- Clone the repository
- Inside of the sln folder, restore the dependencies with
dotnet restore
- Change the directory to SimpleRabbitPublisher with
cd SimpleRabbitPublisher
and execute the publisher project withdotnet run
- Open a new terminal tab and change the directory to SimpleRabbitConsumer with
cd SimpleRabbitConsumer
and nd execute the consumer project withdotnet run
Now you can explore the application using either Swagger or your favorite API development tool, such as Bruno or Postman. You can also tweak the queue behavior with the Management Plugin.
RabbitMQ DocsCodeMaze