[rabbitmq-discuss] Many fanout exchanges or fewer direct exchanges with routing keys
Simon MacMullen
simon at rabbitmq.com
Mon Jun 3 11:04:24 BST 2013
The canonical answer is to run your own tests :-) But if I had to guess
I'd say you might get marginally faster performance from many fanout
exchanges.
Cheers, Simon
On 31/05/13 17:19, Злой Гремлин wrote:
> Hi,
>
> I've been trying to use RabbitMQ and faced the following question.
>
> I need to intensively broadcast 10 types of messages (so there will be
> many consumers for each message type) and each type has ~100 subtypes.
>
> I wonder which of the following approaches is better:
>
> 1.
>
> Create a direct exchange for each message type and send messages
> with a routing key (subtype name) and consumers will be connected
> with a temporary queue. (Because there is no complex routing keys
> like 'key1.key2.*' I decided not to use topic exchange).
>
> 2.
>
> Create a fanout exchange for each message subtype (something around
> 1000 exchanges).
>
> Best regards,
> Oleg
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list