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 7FBE4D13E for ; Tue, 18 Dec 2012 08:01:58 +0000 (UTC) Received: (qmail 68208 invoked by uid 500); 18 Dec 2012 08:01:58 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 68189 invoked by uid 500); 18 Dec 2012 08:01:57 -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 68077 invoked by uid 99); 18 Dec 2012 08:01:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 08:01:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.49] (HELO mail-wg0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 08:01:44 +0000 Received: by mail-wg0-f49.google.com with SMTP id 15so126621wgd.4 for ; Tue, 18 Dec 2012 00:01:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=pphuK0h/sR4CkuirO+uQDcSVEXjEj5zHg3ABnypDpNM=; b=bewairBj4z1EdjVErSAJqKzxCtSy1Fgtl2dtoNLRTMUURrl0mDVo/TgGQog/c/tZ12 QQFSN1qu/Z7gmn9d0dXSmrrEDaquc+/nKflsCZIHKaZOjJWHVItY5D+IV7uOTXPZh+ea PD2Pnxw6bz8n1g5ltA9OUmfw4mzj/zbZWdWfvL+2Vitu2C0i6cnp4B/Ot2LELedPbRvn NVfzZBYOGk8ozMeDV5q1/+kAbEA2RSX2Lxgt7YhDr4rv8dDrOFVMFtHxbEq48CsgvjTq AhDRujFlI7GT9jS9OiutYj3pu2qc8nQJw3LkhiJP6Zm5u/2c19ok0VPbbfNFgPUbdbp1 wbdw== MIME-Version: 1.0 Received: by 10.194.122.98 with SMTP id lr2mr2060093wjb.55.1355817680256; Tue, 18 Dec 2012 00:01:20 -0800 (PST) Received: by 10.194.13.1 with HTTP; Tue, 18 Dec 2012 00:01:20 -0800 (PST) X-Originating-IP: [193.29.76.37] In-Reply-To: References: Date: Tue, 18 Dec 2012 09:01:20 +0100 Message-ID: Subject: Re: limit policy on bound temporary queues From: Jakub Scholz To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=089e0122896c363ed604d11be746 X-Gm-Message-State: ALoCoQnzg4uV5iLzHQ4RyWxTxxWXNDFYXN4PYCdxycWymLQydtXbdUWvVlTt6IzuPS4pKfZFM42m X-Virus-Checked: Checked by ClamAV on apache.org --089e0122896c363ed604d11be746 Content-Type: text/plain; charset=ISO-8859-1 Hi Lance, >From the client you can use address similar to this to create and temporary ring type queue: queue_1; { create: receiver, assert: never, node: { type: queue, x-declare: { auto-delete: true, exclusive: false, arguments: { 'qpid.policy_type': ring, 'qpid.max_count': 1000, 'qpid.max_size': 1000000 } }, x-bindings: [ { exchange: 'exchange_1', queue: 'queue_1', key: 'routing_key_1' } ] } } This creates the auto-delete ring type queue named queue_1 with capacity for 1000 messages or 1000000 bytes and binds it to the exchange named exchange_1 suign the routing key "routing_key_1". I assume for fanout exchange, you do not need the routing key. If you want, you can also use ACLs to allow the clients to create only ring type queues: acl allow user1@QPID create queue name=queue_* maxqueuecount=1000 maxqueuesize=1024000 policytype=ring durable=false autodelete=true This rule will make the broker reject all attempts to create a queue which doesn't fulfill all the specified options. Regards Jakub On Tue, Dec 18, 2012 at 4:09 AM, Lance D. wrote: > Hello, > > I'm trying to figure out a problem and I'm hoping to find the right way to > make this happen. > > I've got a data producer that publishes to an fanout exchange. My system > requires that under no circumstances can the producer get throttled because > even if 1 user can't keep up, the other consumers need the data as soon as > possible. My thought is that if I just force all of the consumers to > connect with a 'ring' limit policy, then I should be okay because slow > consumers will just drop data on the floor. So I'd like to be able to make > that the default policy. > > That said, I'm fairly certain that isn't possible, so I'd at least like to > setup my clients with the correct settings. I've read through the > documentation, but I can't seem to figure out how to register to receive > from an exchange, using a temporary (implicit) queue. > > Thanks in advance for the help. > -Lance > --089e0122896c363ed604d11be746--