Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF8CD1849A for ; Tue, 2 Jun 2015 14:53:00 +0000 (UTC) Received: (qmail 31578 invoked by uid 500); 2 Jun 2015 14:52:47 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 31543 invoked by uid 500); 2 Jun 2015 14:52:47 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 31532 invoked by uid 99); 2 Jun 2015 14:52:47 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2015 14:52:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2FCDA181A4E for ; Tue, 2 Jun 2015 14:52:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.012 X-Spam-Level: X-Spam-Status: No, score=-0.012 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id S6Niy3pCUcEP for ; Tue, 2 Jun 2015 14:52:45 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id B370D47BF1 for ; Tue, 2 Jun 2015 14:52:44 +0000 (UTC) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id A764A345B4B for ; Tue, 2 Jun 2015 14:52:43 +0000 (UTC) Received: from dhcp-97-76.bos.redhat.com ([10.18.97.79]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t52EqhjU023455 for ; Tue, 2 Jun 2015 10:52:43 -0400 Message-ID: <556DC33A.1010105@redhat.com> Date: Tue, 02 Jun 2015 10:52:42 -0400 From: Ted Ross User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: Documentation questions on qpid dispatch router References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 On 06/02/2015 07:09 AM, Noel OConnor wrote: > Hi, > I'm going through the docs for the dispatch router and I've a few basic > questions around entries the qdrouterd.conf file > > [1] In the router sections a router can have a mode of endpoint but this > mode isn't explained. The "endpoint" mode is not relevant to the actual router. It is there to support another project that uses the dispatch library as a dependency. This should be removed from the docs/config-spec. > > [2] In the listener and connector sections, they both can have roles which > are on-demand. Does this mean these listeners and connectors are > started/stopped arbitrarily and is there some sort of config for this ? The on-demand role is only meaningful for connectors. It means that the outgoing connection is only established when it is needed. On demand connectors are indexed by a name and the name can be used in either a waypoint or a linkRoutePattern. Both waypoints and linkRoutePatterns can have an external container (e.g. a broker) associated with them. LinkRoutePatterns establish the on-demand connection at startup. Waypoints are supposed to establish the connection only when there are subscriptions from or messages sent to the connected container. > > [3] The waypoints and fixed addresses have a phase element. Is the phase > concept explained somewhere ? These are probably not sufficiently explained. Also, waypoints are somewhat experimental. We plan to improve them and make them easier to configure/provision. The phase concept is key to waypoints because waypoints define a multi-segment path for an address. For example, a waypoint can represent a queue on a broker. There are two routing paths for this queue: messages flowing _to_ the queue, and messages flowing _from_ the queue. Messages to the queue are phase 0 and messages from the queue are phase 1. Please note that the address phases are not visible to endpoints using the router network. They are only used internally to route messages from endpoint to waypoint (to other waypoints) and to consumers. > > [4] The differences between linkRoutePattern and Waypoint seem subtle (at > least to me). When would you use one over the other ? Both of these features are used to provide remote (cross-network) access to things like brokers, but they do it in fundamentally different ways. Link routing does the routing at the time the link is attached (like a virtual circuit to a remote queue). Waypoints do the routing on each individual message. Link routing provides the full link protocol across the network (i.e. flow control, message settlement, etc.). Waypoints provide a way to implement distributed queues (i.e. messages sent to the nearest waypoint or spread across multiple waypoints with the same address). If the link protocol is important (high-resolution flow control, reliable messaging/exactly-once, transactions, strictly in-order delivery), then link-routing is the appropriate choice. If these are less important, waypoints can provide a more flexible way to provide scale and elasticity. > > thanks for your help > regards > Noel > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org