Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion CGI example needed

Received: by 10.180.104.133 with SMTP id ge5mr1596745wib.1.1341785826709;
        Sun, 08 Jul 2012 15:17:06 -0700 (PDT)
X-BeenThere: nodejs@googlegroups.com
Received: by 10.180.84.68 with SMTP id w4ls3143642wiy.2.canary; Sun, 08 Jul
 2012 15:16:42 -0700 (PDT)
Received: by 10.180.109.135 with SMTP id hs7mr1598592wib.1.1341785802234;
        Sun, 08 Jul 2012 15:16:42 -0700 (PDT)
Received: by 10.180.109.135 with SMTP id hs7mr1598591wib.1.1341785802225;
        Sun, 08 Jul 2012 15:16:42 -0700 (PDT)
Return-Path: <danmi...@gmail.com>
Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178])
        by gmr-mx.google.com with ESMTPS id em7si2519555wib.2.2012.07.08.15.16.42
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sun, 08 Jul 2012 15:16:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of danmi...@gmail.com designates 74.125.82.178 as permitted sender) client-ip=74.125.82.178;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of danmi...@gmail.com designates 74.125.82.178 as permitted sender) smtp.mail=danmi...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-we0-f178.google.com with SMTP id u7so451076wey.23
        for <nodejs@googlegroups.com>; Sun, 08 Jul 2012 15:16:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=message-id:date:from:user-agent:mime-version:to:subject:references
         :in-reply-to:content-type:content-transfer-encoding;
        bh=tP+WRyMKbai8xCrn1E7U2S2Wu1DMCRRuzbUx3cKTWRI=;
        b=SYifWJCKlPLx9haRGeNdwqQJW3AwAqvG/K7l0FYOKa62KHB7T3JKMGsGtDaDpq4jG/
         SRYz1kbM2qenWlf2uQCD4uXWmgK9SzKQpXUwACAUaR8BIx73naAkkD0yw1578p53PQqh
         aRatKHHqZ+akse3ch10akioox9HhI1KFhA08i34OmpVKJrTcDuFmq9aEIhGyY4dMjrG5
         neqpguvB4372RI82tZodUErA2WKj7K3Wsln0W3GPLLZuHiYSn+afSZ9Ts+ib+zKw4VZI
         XBexG/R2+ldm87CgOGG83pxziKs5/SuH6otVTJTGa2g644++Jq6Qz72WrgCyZ14jBMXb
         LFmw==
Received: by 10.216.144.69 with SMTP id m47mr15838149wej.86.1341785801860;
        Sun, 08 Jul 2012 15:16:41 -0700 (PDT)
Return-Path: <danmi...@gmail.com>
Received: from [192.168.1.2] (ppp046176026165.access.hol.gr. [46.176.26.165])
        by mx.google.com with ESMTPS id y2sm20169420wix.7.2012.07.08.15.16.40
        (version=SSLv3 cipher=OTHER);
        Sun, 08 Jul 2012 15:16:41 -0700 (PDT)
Message-ID: <4FFA04EA.2030...@gmail.com>
Date: Mon, 09 Jul 2012 01:08:42 +0300
From: Dan Milon <danmi...@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120616 Thunderbird/13.0.1
MIME-Version: 1.0
To: nodejs@googlegroups.com
Subject: Re: [nodejs] CGI example needed
References: <20120708170111.GA...@mail.akwebsoft.com> <4FF9CCBA.6080...@gmail.com> <20120708215405.GB...@mail.akwebsoft.com>
In-Reply-To: <20120708215405.GB...@mail.akwebsoft.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Yeah, You should read up nodejs.org & tutorials / blogs to learn more ;)

danmilon.

On 07/09/2012 12:54 AM, Tim Johnson wrote:
> * Dan Milon <danmi...@gmail.com> [120708 10:27]:
>> You wouldn't use node as a cgi script (at least for the web part).
>> Technically you can, but you would lose all the benefits
>> (async/nonblocking io) since you let apache or any http server for the
>> matter enforce the concurrency model. Afaik, the cgi server will pull up
>> node processes for each request, which is overkill (startup times) or
>> pool them but things will get complex.
>>
>> As it concerns network/http related scripts, its a big no no, unless you
>> cant replace the http server in your stack, and really need to use node
>> (which is a silly case)
>> If you have to use cgi, i suggest you keep using php/python.
>    :) python is not PHP ... and my question was pretty much
>    rhetorical. I don't know much about the origin of node, I ended up
>    with it in the process of getting csslint installed - so it is all
>    new to me.
>> Why dont you use node as the server also? (not only processing requests)
>    Ah! So node was developed to as a 'serving' tool as opposed to a
>    'scripting' tool?
>
>    thanks for the reply
>