RabbitMQ: How to combine a task queue and a fanout/routing/topic models?

Viewed 2712

I have an environment with one producer and a number of consumers.
The producer creates 2 types of messages:

  1. A message that needs to be processed by ONE consumer only (any consumer will do).
  2. A message that needs to be processed by ALL consumers.

How can this be implemented?
For message type 1, a work queue is the suitable model.
For message type 2, a fanout/direct/routing/topic are suitable.
But how do I combine them?

2 Answers
Related