[rabbitmq-discuss] 答复: A question about RabbitMQ "Presence Exchange" Plugin
liuzhuofu at huawei.com
Wed Feb 8 12:47:28 GMT 2012
I think you didn't catch my point.
My question is : If a queue bind to a 'x-presence' exchange with a "not_empty" key and it hasn't bean subscribe by a process, when the vm of queue exit , the exchange can not receive a "unbind" message for the queue.
But if the queue bind to 'x-presence' exchange with a "not_empty" key and it has subscribe by a process, when the vm of queue exit, the exchange can receive a "unbind" message for the queue.
发件人: Marek Majkowski [majek04 at gmail.com]
发送时间: 2012年2月8日 20:17
Cc: tonyg at ccs.neu.edu; rabbitmq-discuss at lists.rabbitmq.com
主题: Re: [rabbitmq-discuss] A question about RabbitMQ "Presence Exchange" Plugin
2012/2/8 Liuzhuofu <liuzhuofu at huawei.com>:
> When I use RabbitMQ "Presence Exchange" Plugin, I found when a client
> (name:"Client_1") bind to the x-presence exchange, the queue
> (name:"monitor_queue") with "" route key can get a "bind" msg, but if I
> didn't subscribe the queue("Client_1") with a process, when the "client_1"
> coredown, the "monitor_queue" can not get a "unbind" msg. If I subcribe the
> queue("client_1"), when "client_1" coredown or exit, the monitor_queue can
> got a "unbind" msg.
> My question is: I have bind the queue("client_1") to the
> exchange("monitor"), why can not got the "unbind" msg when queue("client_1")
> not be subscribed, but can got the "unbind" msg when queue("client_1") be
Take a look at the readme:
"bindings made with the empty string "" as their binding
key, which receive presence messages, but do not
produce them; and bindings made with any other binding key,
which produce presence messages but do not receive them."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss