I've been looking at rails source code. The way I see it. I need to use 
something similar to the spawner, which creates the fcgi processes. Then 
inside of another script. Say gateway.fcgi. I trap all the different 
signals that come from an fcgi request.

it appears in the rails source that if the signal is USR1 he is then 
calling Dispatcher, which in turn executes the application and gets the 
response.

then in a lighttpd config, I can specify all three different process and 
how to handle them, or however many processes I spawn.

like so:

fastcgi.server = ( ".fcgi" =>
    ( "localhost-8000" => ( "host" => "127.0.0.1", "port" => 8000 ) ,
    "localhost-8001" => ( "host" => "127.0.0.1", "port" => 8001 ) ,
    "localhost-8002" => ( "host" => "127.0.0.1", "port" => 8002 ) )
)

make sense? Can it be easier then that? I'm thinking that the way rails 
sets this up is for multi threading so that one request doesn't lock the 
application until that request is complete.

-thanks.

-- 
Posted via http://www.ruby-forum.com/.