I’m coming from a PHP, ASP and JSP environment and learning Rails. I just
purchased the “Agile Web D. with Rails” and find it excellent.
Here’s my question: I always thought that CGI apps were slow and memory hogs
as compared to servlets that have one copy in memory.
a fastcgi process is a servlet. rails runs in two modes cgi and
fastcgi. cgi is slow and for development only, fastcgi is a servlet
type
model which is several orders of magnitude faster that plain cgi.
----- Original Message -----
From: [email protected]
To: [email protected]
Sent: Sunday, December 04, 2005 2:02 PM
Subject: Re: [Rails] FastCGI performance question
as compared to servlets that have one copy in memory.
–
===============================================================================
| ara [dot] t [dot] howard [at] noaa [dot] gov
| all happiness comes from the desire for others to be happy. all misery
| comes from the desire for oneself to be happy.
| – bodhicaryavatara
===============================================================================
as compared to servlets that have one copy in memory.
a fastcgi process is a servlet. rails runs in two modes cgi and
fastcgi. cgi is slow and for development only, fastcgi is a servlet type
model which is several orders of magnitude faster that plain cgi.
I strongly suggest not to use CGI at all, not even for development
mode. For several reasons:
The execution model of CGI is very different from FCGI.
Developing in an environment that doesn’t resemble your production
environment as closely as possible is bound to hide potential production
environment problems.
It will slow down your development process considerably.
I’m curious about this…does lighttpd running through script/server use
FCGI or not?
skaes wrote:
I strongly suggest not to use CGI at all, not even for development
mode. For several reasons:
The execution model of CGI is very different from FCGI.
Developing in an environment that doesn’t resemble your production
environment as closely as possible is bound to hide potential production
environment problems.
It will slow down your development process considerably.
lighttpd does use fcgi, but as it was stated earlier, it runs
completly differently then regular cgi. Webrick uses its very own
method I’m assuming, becuse its all in rails.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.