Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-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 BB50F8DEB for ; Fri, 26 Aug 2011 15:09:57 +0000 (UTC) Received: (qmail 88858 invoked by uid 500); 26 Aug 2011 15:09:57 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 88795 invoked by uid 500); 26 Aug 2011 15:09:56 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 88787 invoked by uid 99); 26 Aug 2011 15:09:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 15:09:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bill.speirs@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qy0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 15:09:48 +0000 Received: by qyk35 with SMTP id 35so2233556qyk.10 for ; Fri, 26 Aug 2011 08:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6px85bcYNFFDw3tn3MriqDd/1jRGVlFxJdB98cwpxI0=; b=Y2mYCv91qOioCVKDbZZkZuDIAJUUte/OMHx6KqR6cVv8CUj//ulncwpekIeOBOvDhk Opd69z0GrDdQlt2AH1QLIcG6I7o0P9fI4P4fu1idwHz2cgmVYyif/e9kngB0U7iTkDKI mOtgoubi04QwB96reHdZktl+oyEJ7S9TmOvqQ= MIME-Version: 1.0 Received: by 10.42.161.10 with SMTP id r10mr1107163icx.6.1314371367727; Fri, 26 Aug 2011 08:09:27 -0700 (PDT) Received: by 10.42.228.69 with HTTP; Fri, 26 Aug 2011 08:09:27 -0700 (PDT) In-Reply-To: <1314365389.4578.39.camel@ubuntu> References: <1314196752.1969.92.camel@ubuntu> <1314365389.4578.39.camel@ubuntu> Date: Fri, 26 Aug 2011 11:09:27 -0400 Message-ID: Subject: Re: HttpParams appear to be static/global From: Bill Speirs To: HttpComponents Project Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org This is very much the type of thing I'm looking for. What I do not understand how to accomplish is having one (or a few) threads which handle the i/o events for both the incoming requests and the outgoing requests to the back-end services, and then their responses. I'll take a look at the source for Apache Synapse though... Thanks! Bill- On Fri, Aug 26, 2011 at 9:29 AM, Oleg Kalnichevski wrote: > Bill, > > A very common pattern for proxies (used by Apache Synapse, for instance) > is to have a small number of i/o dispatch threads (approx. as many as > the CPU cores) handling i/o events for incoming and outgoing connections > asynchronously and a larger pool of worker threads that are employed to > execute long, potentially blocking operations (such as content > transformation). I _suspect_ that is what you want. > > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > For additional commands, e-mail: dev-help@hc.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org