Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 816D0FA80 for ; Wed, 20 Mar 2013 01:18:19 +0000 (UTC) Received: (qmail 64780 invoked by uid 500); 20 Mar 2013 01:18:19 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 64744 invoked by uid 500); 20 Mar 2013 01:18:19 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 64735 invoked by uid 99); 20 Mar 2013 01:18:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 01:18:19 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of suonayi2006@163.com designates 220.181.13.88 as permitted sender) Received: from [220.181.13.88] (HELO m13-88.163.com) (220.181.13.88) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 01:18:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Subject:In-Reply-To: References:Content-Type:MIME-Version:Message-ID; bh=ZPhltgBoZOt6 i+nbTcQ7qXnSH/sTP6M6nD85zb0RRRI=; b=Ek0iR9FWE46s0ZrX0WNxJOKEVHkp bX1AtSatHfns7vszmpGRpTTpehh4bBoi3t25vLjnaAF8cqJzX8PH0e/5zXupzf7q jj0PsfrEEhJMPInla2Sjd+zJhz2cfUwummCQsAT3hLjUZI5NtX3b7iMo9A7p69L+ R5PwHsi7EUxbydQ= Received: from suonayi2006$163.com ( [203.119.80.8] ) by ajax-webmail-wmsvr88 (Coremail) ; Wed, 20 Mar 2013 09:17:52 +0800 (CST) X-Originating-IP: [203.119.80.8] Date: Wed, 20 Mar 2013 09:17:52 +0800 (CST) From: SuoNayi To: dev@activemq.apache.org Subject: Re:load balancing for a few identical queues X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20130201(21528.5249.5248) Copyright (c) 2002-2013 www.mailtech.cn 163com In-Reply-To: <1363681350351-4664864.post@n4.nabble.com> References: <1363681350351-4664864.post@n4.nabble.com> X-CM-CTRLDATA: a1Smm2Zvb3Rlcl9odG09MjU4MTo4MQ== Content-Type: multipart/alternative; boundary="----=_Part_376103_1267859141.1363742272057" MIME-Version: 1.0 Message-ID: X-CM-TRANSID: WMGowECpAEJBDklRRQsFAA--.3957W X-CM-SenderInfo: xvxr0td1lsiiqw6rljoofrz/1tbiMwTlGlEACwHfigACsE X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_376103_1267859141.1363742272057 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit I do not think you need several queues, you can just send your requests to one queue and use several consumers to fetch requests from the queue to make call to abonent. It means that several consumers will make these calls in parallel threads and the broker can dispatch requests to consumers evenly.So there is no need to make this by yourself. At 2013-03-19 16:22:30,Alexander wrote: >Hello All !!! >I have some application which make call to abonent. One of the main >requirements is make these calls in parallel threads. I have decided to make >this using ActiveMQ. Queue's count must be configurable. >As I imagine these will be several queues for calling to abonents. But I >think that it needs some alghoritm for load balancing between queues. If I >will make it by hand, I need develop own balance procedure, which will be >analize queue sizes. But maybe exists some ready-made decision for it ... ? >What you think about it ? >What the right decision for this case ? > >Thanks ! > > > >-- >View this message in context: http://activemq.2283324.n4.nabble.com/load-balancing-for-a-few-identical-queues-tp4664864.html >Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. ------=_Part_376103_1267859141.1363742272057--