Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  the select messages by routing-key

akalen
Posted: Wed Oct 07, 2009 8:38 am Reply with quote
Joined: 11 Jun 2009 Posts: 9
Hi All,

I have the received messages into the queue with routing-key:
message #1 - key: news
message #2 - key: realty
message #3 - key: realty
message #4 - key: news

Can I to read from queue only by single routing-key, for example:
only first reading block
message #2 - key: realty
message #3 - key: realty

only Second reading block:
message #1 - key: news
message #4 - key: news


I see next path:
- read all messages with no_ack (basic.get )
- filtring by key

read second block:
- read all messages (basic.get )
- filtring by second key

Lack of this method is duble the incoming flow

The second path is to have the two different queues.


thanks



Alexandre

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message
Guest
Posted: Wed Oct 07, 2009 10:39 am Reply with quote
Guest
Alexandre

2009/10/7 Alexandre Kalendarev <akalend@mail.ru>:
> Alexis,
>
> It is second path.

Understood.


> First path:

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum