Messaging with RabbitMQ and .NET review part 5: one way messaging with an event based consumer
August 10, 2016 4 Comments
Introduction
In the previous post we saw how to process messages from a queue using a receiver we derived from a default basic consumer. We implemented the HandleBasicDeliver function for that purpose. We also discussed two message exchange patterns (MEPs), one-way and and worker queues. The two are practically identical in code but the worker queues MEP implies that we have 2 or more consumers competing for the messages from the queue. That way we can spread out the message load across multiple consumer instances.
In this short post we’ll look at an alternative way to consume messages from a queue in code.