Skip to content

chrishoy/RabbitMQ-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Consumer-Publisher example using RabbitMQ

This is a simple example of a consumer-publisher model using RabbitMQ. The consumer is a simple C# console app that listens to a queue and prints messages to the console. The publisher is a simple C# console app that sends messages to a queue.

  • docker-compose.yml: This file contains the RabbitMQ configuration.
  • src/consumer.csproj: This is the consumer project.
  • src/publisher.csproj: This is the publisher project.

How to run

  1. Clone the repository
  2. Modify docker-compose.yml to set the RabbitMQ persistent volume data location
  3. Run docker-compose up -d to start RabbitMQ
  4. Run the consumer project (Debug > Start new instance)
  5. Run the publisher project (Debug > Start new instance)

Releases

No releases published

Packages

No packages published

Languages