From: Brian Candler Date: 2003-05-08T15:41:38+09:00 Subject: Re: Why is PHP so popular? What can we learn from the PHP camp? On Thu, May 08, 2003 at 08:55:20AM +0900, Rasputin wrote: > * henq [030508 00:42]: > > > I beg to differ. You get many requests per second. So you need a thread or > > process mechanism to let each request get its response when the response is > > calculated/assembled/generated. > > > > Apache happens to do just that *very* efficiently, by spawning off > > processes. MySQL connections are pooled by the way (transparently for the > > developer, if you want). > > I don't use MySQL, but I doubt that forking off a subshell to run a CGI > is as fast as starting a new thread on an existing object instance to > service an incoming connection. Perhaps he was referring to Apache + mod_ruby? There is no fork involved to service an application request. > I *tried* to love mod_perl, honest. But having to rewrite a CGI to run > under it is a pain in the ... neck. Another reason I like fcgi, as it supports Perl/Ruby/C apps without recompiling your webserver. Apps can run as "normal" CGI or fastCGI without modification. B.