[rabbitmq-discuss] the select messages by routing-key

Alexandre Kalendarev akalend at mail.ru
Wed Oct 7 09:37:14 BST 2009


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 




More information about the rabbitmq-discuss mailing list