Example publish and subscribe with RabbitMq
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
Alexw.RabbitMqExample.sln
README.md

README.md

Alexw.RabbitMqExample

Basic publisher and client in C# using the RabbitMq.Client nuget.

Inspired by some work on a client - more detail in this walkthrough

Pre-Requisites

Getting started

  1. Installed RabbitMq 1a. Installed Erlang so RabbitMq runs
  2. Enable the HTTP RabbitMq Management Plugin
    rabbitmq-plugins enable rabbitmq_management
  3. Navigate to http://localhost:15672 to see the queues
  4. Start the Alexw.RabbitMqExample.Client console app. Watch it for messages.
  5. Run the Alexw.RabbitMqExample.Publisher to send a message.

Messages will be sent to the default (blank) topic. The Client will create a queue if it does not exist and subscribe to all messages.

Learnings

  • By default guest user cannot create a queue on the default (blank) exchange - you'll get a permissions error if you try it.