[rabbitmq-discuss] Need Review - Content Based Routing - Performance

Matthias Radestock matthias at rabbitmq.com
Sun Dec 9 11:48:10 GMT 2012


Bhaskar,

On 09/12/12 10:43, Bhaskar teja wrote:
> Exchange type - Web_Events
> Type - Direct
> Routing-Key - "Event_Type"
>
> Queue - Web_notifications
> Queue - Search
> Queue - Logging
> Queue - email
> with appropriate multiple bindings of event_type
>
> We have approximately ~ 100 event types. So we are afraid the
> performance may go bad if we bind 100s of routing_keys to a Queue
> Is it ok if we bind 1000 routing_keys to a Queue?

Routing performance of direct exchanges is (close to) O(1), so yes, 
binding a queue to a direct exchange with 1000 routing keys is perfectly 
fine.

Regards,

Matthias.


More information about the rabbitmq-discuss mailing list