[rabbitmq-discuss] Exchange-queue binding ?

Matthias Radestock matthias at lshift.net
Sat Nov 17 08:03:33 GMT 2007


Brian,

Brian Granger wrote:

> Ahh, I didn't know that the header exchange wasn't implemented yet.

The reason they aren't implemented is that they are not part of the AMQP 
0-8 spec, which is what RabbitMQ conforms to. They were introduced in 
AMQP 0-9.

> What about doing this using a topic exchange?

Yep. That should work.

 > rabbit_exchange:topic_matches(<<"#.foo.#">>, <<"foo.bar.baz.boo">>).
true
 > rabbit_exchange:topic_matches(<<"#.bar.#">>, <<"foo.bar.baz.boo">>).
true
 > rabbit_exchange:topic_matches(<<"#.baz.#">>, <<"foo.bar.baz.boo">>).
true
 > rabbit_exchange:topic_matches(<<"#.boo.#">>, <<"foo.bar.baz.boo">>).
true
 > rabbit_exchange:topic_matches(<<"#.moo.#">>, <<"foo.bar.baz.boo">>).
false


Matthias.




More information about the rabbitmq-discuss mailing list