baoqger / rabbitmq-demo-multi-consumer

RabbitMQ with .NET samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rabbitmq-test-multi-consumer

THIS IS JUST A SAMPLE!

Sample to check RabbitMQ with exchange (to send messages to multiple queues) and multiple consumers in one of the queues, to process the queue faster.
The project assumes that you have RabbitMQ server running on localhost (docker for example: https://hub.docker.com/_/rabbitmq). Queues are durable. Event based model of message consumption is used.

Samples were taken from official RabbitMQ .NET tutorials.
NewTask - project to publish messages via exchange to several queue in RabbitMQ.
Worker1 - subscriber 1, uses multi consumer config with QOS 1 message per consumer.
Worker2 - subscriber 2, subscribes to second queue, just to use the exchange configuration.

About

RabbitMQ with .NET samples


Languages

Language:C# 100.0%