From dev-return-4607-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Sat Jun 13 14:25:42 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 93554 invoked from network); 13 Jun 2009 14:25:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jun 2009 14:25:40 -0000 Received: (qmail 46179 invoked by uid 500); 13 Jun 2009 14:25:51 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 46087 invoked by uid 500); 13 Jun 2009 14:25:51 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 46077 invoked by uid 99); 13 Jun 2009 14:25:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jun 2009 14:25:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.kocoloski@gmail.com designates 209.85.221.171 as permitted sender) Received: from [209.85.221.171] (HELO mail-qy0-f171.google.com) (209.85.221.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jun 2009 14:25:41 +0000 Received: by qyk1 with SMTP id 1so1891274qyk.13 for ; Sat, 13 Jun 2009 07:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=GVto3TFFnGT8J+JTI6vFy22K/3ppZFhFUAGlTSZGfz8=; b=BgmGsdSHoyiQx5L6fUuyoRhdECqc1dqxZ1SsqG4vlBOpECYobKXVwatzzm8VW2E5di qotcgsK/+HdJyErx8U85ml2eZuaZJcaHFCZ4MD2W7SIFR8rUbLb07i/VBsPaQY7huF7B HHVQ/kmEZGWC3KgFMM7ZE+NLkdkboNOtoqpaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=QTA7ocYcynP9T4zY8DYGYYH5G8dt+RUpbl70kt/JU9S6comc8SkPHOm92CoGrrW0W4 rFfAKtd6+CtiW0Fjp9G74m6ogPbnLhwGgO4WuxAoMxQ8GCUfnO5ySGml64CDHXgSt6fo weuWHPqiqMVsWVo99fripFjM+YHT9XPwzIvBk= Received: by 10.224.73.146 with SMTP id q18mr5443547qaj.312.1244903118104; Sat, 13 Jun 2009 07:25:18 -0700 (PDT) Received: from ?10.0.1.2? (c-71-232-49-44.hsd1.ma.comcast.net [71.232.49.44]) by mx.google.com with ESMTPS id 5sm2129017qwg.25.2009.06.13.07.25.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 13 Jun 2009 07:25:17 -0700 (PDT) Sender: Adam Kocoloski Message-Id: <8AB5F3E6-5B4D-436C-A990-DEEFD9230374@apache.org> From: Adam Kocoloski To: dev@couchdb.apache.org In-Reply-To: <558050c20906130553u2da2c97fuf8d7fb49e8f69103@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: How are js-interpreters run in presence of concurrent connections to javascript-show dynamic page? Date: Sat, 13 Jun 2009 10:25:14 -0400 References: <558050c20906130553u2da2c97fuf8d7fb49e8f69103@mail.gmail.com> X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi Dmitry, I didn't write the code but my understanding is that we look for an unused OS process for the requested language; if we find one, we use that process, if not, we spawn a new one. There is also a comment in the code > % Note to future self. Add max process limit. So the simple answer to your question is that the responses to concurrent _show requests will be generated in separate OS processes. Sorry for the radio silence on user@, it's not usually the case. Most of the devs are listening there too. Best, Adam On Jun 13, 2009, at 8:53 AM, Dmitry Unkovsky wrote: > Not being answered on user support list, I post this message to > developer list. > I'm sorry if someone will receive it twice. > > Considering multiple simultaneous requests to some > _design/examples/_show/page, how are js-interpreters run? > Are they run in different threads? Or using some kind of queue or > multiplexion? > Can anyone in a sentence shed a bit of light on response model? > > Regards, Dmitry.