You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Se...@troika.ru on 2011/01/25 17:08:26 UTC
Difference between subjects and routing keys
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
Re: Difference between subjects and routing keys
Posted by Se...@troika.ru.
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 <tr...@redhat.com>
25.01.2011 22:20
Please respond to
users@qpid.apache.org
To
users@qpid.apache.org
cc
Subject
Re: Difference between subjects and routing keys
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
Re: Difference between subjects and routing keys
Posted by Ted Ross <tr...@redhat.com>.
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