From owner-freebsd-questions@FreeBSD.ORG Wed Apr 26 21:05:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F58416A40B for ; Wed, 26 Apr 2006 21:05:50 +0000 (UTC) (envelope-from os@odots.org) Received: from ikkefulltsaalilleole.odots.org (138.80-203-29.nextgentel.com [80.203.29.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C32B43D48 for ; Wed, 26 Apr 2006 21:05:50 +0000 (GMT) (envelope-from os@odots.org) Received: from [10.0.4.4] (helo=[10.0.4.4]) by ikkefulltsaalilleole.odots.org with esmtp (Exim 4.52) id 1FYr7T-00058v-9w for freebsd-questions@freebsd.org; Wed, 26 Apr 2006 23:00:19 +0200 Message-ID: <444FE144.4050603@odots.org> Date: Wed, 26 Apr 2006 23:08:20 +0200 From: =?ISO-8859-1?Q?=D8yvind_Skaar?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060228 SeaMonkey/1.5a MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20060426152631.D6A0516A418@hub.freebsd.org> In-Reply-To: <20060426152631.D6A0516A418@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: CGI "service". X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 21:05:50 -0000 > Hi, I´m developing a web app in C++. But it loads a huge amount of > from a Database to memory, and I can´t afford doing this everytime > someone asks for the page. Is there a way to make the program to keep > running, and reading requests made via CGI? Hi.. Maybe fastCGI can do what you are looking for.. (http://www.fastcgi.com/) "Performance. FastCGI processes are persistent-they are reused to handle multiple requests. This solves the CGI performance problem of creating new processes for each request." -- Øyvind Skaar | os _a odots.org | 482 78 480 | http://odots.org http://last.fm/user/%67%69%7A%7A%6C%6Fn | http://43things.com/person/%C3%B8s 6865792c207768617420646f20796f75206b6e6f772c 796f752772652061206e65726420746f6f202e2e