Ted thanks a lot.

As far as I understand 'subject' is more preferable to use, because there 
are no routing keys in the AMQP 1.0. There are filters instead. Am I 
right?


Best Regards,
Sergey Zhemzhitsky




Ted Ross <[email protected]> 
25.01.2011 22:20
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: Difference between subjects and routing keys






On 01/25/2011 11:08 AM, [email protected] wrote:
> Hi there,
>
> According to following link
> 
http://qpid.apache.org/books/0.8/Programming-In-Apache-Qpid/html/ch02s04.html#id3068029

> subjects can be used to direct messages to different destinations. 
Routing
> and binding keys can used for the same purpose. So what is the 
difference
> between subjects and routing keys?
>
>
> Best Regards,
> Sergey
Sergey,

They are overlapping concepts, 'subject' being the more general of the 
two.  A subject is part of the address used in the new API and is also a 
header in the message envelope.  The routing-key is specific to the AMQP 
0-10 specification.

The new API is intended to support existing AMQP protocol versions as 
well as AMQP 1.0.  The mapping of the API to AMQP 0-10 sets the routing 
key of a message to the subject value.  If there is no subject, it uses 
the subject part of the Sender address.

-Ted


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]


Reply via email to