binding key

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

binding key

PATAR, SAGAR

We have an exchange and have added some binding’s … There are some messages which doesn’t have any binding key … I am not sure how to route the messages without binding key or undefined or  wrong binding key for which binding is not defined ….

I don’t want to consume all the messages just the one’s which are not bind..


_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|

Re: binding key

Alvaro Videla-2
See "Alternate Exchanges": http://www.rabbitmq.com/ae.html


On Thu, Oct 3, 2013 at 1:00 PM, PATAR, SAGAR <[hidden email]> wrote:

We have an exchange and have added some binding’s … There are some messages which doesn’t have any binding key … I am not sure how to route the messages without binding key or undefined or  wrong binding key for which binding is not defined ….

I don’t want to consume all the messages just the one’s which are not bind..


_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss



_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|

Re: binding key

Michael Klishin
In reply to this post by PATAR, SAGAR

On oct 3, 2013, at 10:00 p.m., "PATAR, SAGAR" <[hidden email]> wrote:

> There are some messages which doesn’t have any binding key … I am not sure how to route the messages without binding key or undefined or  wrong binding key for which binding is not defined ….

Some exchange types (e.g. fanout) do not use routing keys at all. Are you sure that you need routing
keys?

If a message cannot be routed anywhere, there are several options:

 * If it's published as mandatory, it will be returned to the client
 * If there is an alternate exchange specified, it will be tried
 * Finally, the message will be discarded

You need to choose the right exchange type and one of the options above for unroutable messages
according to the topology you want to build. RabbitMQ tutorial demonstrate several very
common scenarios.

> I don’t want to consume all the messages just the one’s which are not bind

Bindings matter during routing. Once a message is routed to one or more queues,
it can be consumed regardless of the routing key.

MK




_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

signature.asc (506 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: binding key

PATAR, SAGAR
Thanks ..
 
We are using management console to configure the exchanges and bindings ..
During the configuration we see arguments  .. not sure how to use it and any scenarios they might be useful..

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Michael Klishin
Sent: Thursday, October 03, 2013 2:07 PM
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] binding key


On oct 3, 2013, at 10:00 p.m., "PATAR, SAGAR" <[hidden email]> wrote:

> There are some messages which doesn't have any binding key ... I am not sure how to route the messages without binding key or undefined or  wrong binding key for which binding is not defined ....

Some exchange types (e.g. fanout) do not use routing keys at all. Are you sure that you need routing
keys?

If a message cannot be routed anywhere, there are several options:

 * If it's published as mandatory, it will be returned to the client
 * If there is an alternate exchange specified, it will be tried
 * Finally, the message will be discarded

You need to choose the right exchange type and one of the options above for unroutable messages
according to the topology you want to build. RabbitMQ tutorial demonstrate several very
common scenarios.

> I don't want to consume all the messages just the one's which are not bind

Bindings matter during routing. Once a message is routed to one or more queues,
it can be consumed regardless of the routing key.

MK



_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|

binding key

PATAR, SAGAR
In reply to this post by PATAR, SAGAR
Apart from binding keys .. can we use some other header property or attribute of the message for routing ??

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of PATAR, SAGAR
Sent: Monday, October 07, 2013 10:12 AM
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] mirrored queue cluster

*** Security Advisory: This Message Originated Outside of AT&T ***.
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.

Thanks Michael ..
When you say NO changes in framework ...I am little confused..

 Let's say a new consumer is introduced  ..

1)The consumer can simply subscribe BUT there is NO way the dynamic queue is mirrored and also if the consumer has a downtime then the messages published during the downtime will be lost as the dynamic queue will be deleted .. Even if there is a feature where the dynamic queue is not deleted when the connection fails .. Can we mirror that queue and also how can we make sure when the client reconnects will it be using the same queue or will create a NEW queue...

2)If we need to mirror the queue the new consumer is going to consume from then we might have to do some confutation changes ..right??

" Note that I was explaining things in AMQP 0-9-1 terms, and now you've revealed that your
requirements are framed in JMS terms, which are not exactly the same." ..
Can we use Rabbit to achieve the JMS based requirements ??

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Michael Klishin
Sent: Monday, October 07, 2013 9:41 AM
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] mirrored queue cluster


On oct 5, 2013, at 7:48 p.m., "PATAR, SAGAR" <[hidden email]> wrote:

> The requirement we have is a simple JMS topic with failover and persistency..
> Where multiple client subscribe for the messages and when a new client is introduced NO changes in framework as  the Topic is already configured for failover and persistence ..the new client will just make a connection and start consuming ..
>
> With RabbitMQ my understanding is we need to configure a new queue and mirror it and then ask the new client to consume the message ...??
>
> Pl. check slide 3 and  4 in the attachment ... For new client do we need to configure a new mirrored queue ... All the queues should get all the messages from the exchange ...

Unfortunately, I'm not familiar with how vFabric Rabbit's JMS client maps RabbitMQ protocol
to JMS.

Perhaps one of my colleagues has an answer for this?

MK



_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|

Re: binding key

Chris-3
Hello Sagar,

AMQP defines a HEADER exchange that allows you to match based on headers.  It's briefly discussed in the "AMQP Explained" document: http://www.rabbitmq.com/tutorials/amqp-concepts.html.  I think I've heard that this exchange doesn't perform as efficiently as some of the others, though...

In addition to the standard AMQP exchanges, there are also some custom exchanges for other routing strategies (like consistent hash exchange: http://hg.rabbitmq.com/rabbitmq-consistent-hash-exchange/file/rabbitmq_v3_1_5/README.md, or a few at the bottom of this page: http://www.rabbitmq.com/devtools.html).

And if you're feeling brave, you can also create your own custom exchange...

-Chris

On Monday, October 7, 2013, PATAR, SAGAR wrote:
Apart from binding keys .. can we use some other header property or attribute of the message for routing ??

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of PATAR, SAGAR
Sent: Monday, October 07, 2013 10:12 AM
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] mirrored queue cluster

*** Security Advisory: This Message Originated Outside of AT&T ***.
Reference http://cso.att.com/EmailSecurity/IDSP.html for more information.

Thanks Michael ..
When you say NO changes in framework ...I am little confused..

 Let's say a new consumer is introduced  ..

1)The consumer can simply subscribe BUT there is NO way the dynamic queue is mirrored and also if the consumer has a downtime then the messages published during the downtime will be lost as the dynamic queue will be deleted .. Even if there is a feature where the dynamic queue is not deleted when the connection fails .. Can we mirror that queue and also how can we make sure when the client reconnects will it be using the same queue or will create a NEW queue...

2)If we need to mirror the queue the new consumer is going to consume from then we might have to do some confutation changes ..right??

" Note that I was explaining things in AMQP 0-9-1 terms, and now you've revealed that your
requirements are framed in JMS terms, which are not exactly the same." ..
Can we use Rabbit to achieve the JMS based requirements ??

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Michael Klishin
Sent: Monday, October 07, 2013 9:41 AM
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] mirrored queue cluster


On oct 5, 2013, at 7:48 p.m., "PATAR, SAGAR" <[hidden email]> wrote:

> The requirement we have is a simple JMS topic with failover and persistency..
> Where multiple client subscribe for the messages and when a new client is introduced NO changes in framework as  the Topic is already configured for failover and persistence ..the new client will just make a connection and start consuming ..
>
> With RabbitMQ my understanding is we need to configure a new queue and mirror it and then ask the new client to consume the message ...??
>
> Pl. check slide 3 and  4 in the attachment ... For new client do we need to configure a new mirrored queue ... All the queues should get all the messages from the exchange ...

Unfortunately, I'm not familiar with how vFabric Rabbit's JMS client maps RabbitMQ protocol
to JMS.

Perhaps one of my colleagues has an answer for this?

MK



_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|

Re: binding key

Michael Klishin
In reply to this post by PATAR, SAGAR

On oct 8, 2013, at 2:50 a.m., "PATAR, SAGAR" <[hidden email]> wrote:

> Apart from binding keys .. can we use some other header property or attribute of the message for routing ??

There is header exchange but it's not particularly efficient and most of the time you
can do what it does by combining multiple (logical) keys in your routing key and using a topic exchange.

MK




_______________________________________________
rabbitmq-discuss mailing list
[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

signature.asc (506 bytes) Download Attachment