[rabbitmq-discuss] Message filtering

Chris stuff at moesel.net
Wed Aug 21 12:52:32 BST 2013


By the way, I apologize if you already know this, but you *can* have
multiple bindings on a queue.  So using routing keys wouldn't necessarily
imply a large number of queues.  In regards to memory, bindings do have a
memory footprint on the server, but if I recall, it is pretty small.

-Chris


On Wed, Aug 21, 2013 at 5:05 AM, Emile Joubert <emile at rabbitmq.com> wrote:

>
> Hi,
>
> On 21/08/13 02:07, Vikram Viswanathan wrote:
> > I have a requirement where my rabbitmq consumer needs to receive
> > messages from a single queue based on a certain filtering criteria.
> > Something like a jms, where I can create a consumer based header
> > property of messages.
>
> RabbitMQ does not support queue filtering. Messages can only be
> retrieved from the head of the queue. The idea of retrieving all the
> messages from a queue and rejecting non-matches is explicitly
> discouraged in the protocol specification.
>
> > I do not want this to be done by exchange routing key, because this
> > can mandate creating a large number of queues(I can possibly have a
> > million routing keys)
> >
> > Is there a way to do it?
>
> If you don't want a queue for each possible routing key you could aim
> for an intermediate granularity. Or partition consumers by capability,
> create a queue per partition and route messages according to the
> capabilities required for processing.
>
> > BTW, How much memory is allocated for each durable queue created in
> > the server ? Is there a way to tune this parameter ?
>
> You can limit the memory a queue is likely to need by limiting the
> length of the queue or the time that messages may spend in the queue:
>
> http://www.rabbitmq.com/maxlength.html
> http://www.rabbitmq.com/ttl.html
>
>
>
>
>
> -Emile
>
>
>
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130821/af3a8c02/attachment.htm>


More information about the rabbitmq-discuss mailing list