I have a RabbitMQ setup with following configuration.
- each Exchange is
FANOUT
type - Multiple Queue attached to each Exchange.
BlockingConnection
is made by consumer.- Single Consumer to handle all callbacks.
Problem -
Some payload take longer time to process than others, which leads the consumer to stay idle even when there are payloads in other queue.
Question -
- How should I implement the consumer to avoid long waits ? Should I run separate consumer for each module ? any user experience ?
- Can I configure RabbitMQ to handle these situations ? if so how.?