qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Ross <tr...@redhat.com>
Subject Re: Difference between subjects and routing keys
Date Tue, 25 Jan 2011 19:19:32 GMT
On 01/25/2011 11:08 AM, Sergey_Zhemzhitsky@troika.ru 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:users-subscribe@qpid.apache.org


Mime
View raw message