Thanks for your prompt reply Gordon.

We already recreate the routes automatically upon broker death/restart, so that 
piece is not a problem.  I'm wondering, though, if these federation 
subscription queues are not durable, what is the best way to programmatically 
determine if these queues went away while the broker is still active (and hence 
know to recreate them)?  Again, our problem is that these federated queues are 
sometimes getting destroyed underneath us and we need to know when this occurs. 

Thanks again,
Trina Wisler

-----Original Message-----
From: Gordon Sim [mailto:[email protected]] 
Sent: Tuesday, November 29, 2011 8:47 AM
To: [email protected]
Subject: Re: durable queues and routing

On 11/29/2011 04:22 PM, Wisler, Trina wrote:
> Hi all,
>
> We have a federated network of C++ brokers setup.  When a message is
> produced, it will generally go through several layers of brokers
> before it is consumed by a client.  We have setup ring queues for the
> client so that its queue at the final layers doesn't get too backed
> up.  The problem we are having is with our bridge queues at lower
> levels when we have 1000's of messages going through per second (for
> generally short periods of time, but not always).  The bridge queues
> will back up and ultimately get deleted.  These bridge queues are
> setup directly through the routing command (qpid-route route add
> ....).  They are not recreated after being deleted.  I don't believe
> we can create these as durable queues explicitly through qpid-route
> as not all messages are routed to the same places throughout the
> hierarchy - it all depends on what the routing key is.   And it would
> appear that creating a queue in this manner suggests that ALL
> messages go from one place to the other since I am unable to specify
> a routing key.  If I am misunderstanding this piece, please clarify.
>
> My question is this : can I make it so the bridge queues can
> automatically be recreated after being destroyed?  If one of the
> brokers goes down, we will automatically reestablish routes when it
> comes back up, but I need to cover the case where the queue is
> dropped for whatever reason, yet the infrastructure remains active.

The routes themselves can be made durable, in which case they will be 
recreated on restart (assuming you have a store plugin loaded). However 
any message published when they are not active will not be federated, 
the federation subscription queues are not themselves durable.

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

Reply via email to