JZ wrote: > The basic philosophy of CGI is to execute for every request interpreter of > (Ruby/PHP/Perl/Python whatever) and its scripts (or binary compiled > application) all over again. This is the reason CGI is slow. But here I am > connecting to Rails server through Apache. CGI is only a protocol as you > wrote. It should be fast, because CGI is only an adapter (if I understand > it correctly) Where am I wrong? You are mistaken in your belief that you are "connecting to a Rails server through Apache." Rails is a Ruby program that servers can run (to be super-simple about it). With CGI, this program will be run once for every request, with all the overhead associated with that. This is why the Rails site pushes FastCGI so much: It keeps a persistent instance of the Ruby interpreter around so you can have the kind of architecture you're thinking of.