From: David Heinemeier Hansson Date: 2005-01-12T07:14:41+09:00 Subject: Re: mod_ruby & rails doc? > Using the mod_ruby gives web application more bags of tools that comes > with Apache, just like the mod_php. And also, it is easier to manage > since it is integrated with Apache. > > Some have claimed that FastCGI is faster than mod_ruby, can anyone > validate these claims? Because I can hardly believe that CGI is faster > than the embedded interpreter. mod_ruby uses one interpreter per Apache process, which means that apps walk all over each other in the namespaces. At least for Rails, that's not acceptable, so it's 1 app per Apache setup if you want mod_ruby. FCGI is a much better setup for Rails. You don't fill up a ton of Apache processes with your app (so apache processes serving static files and images stay small) and you can have as many apps per apache setup as you'd like. I've found FCGI to be 10-15% faster in my tests with Rails. -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://macromates.com/ -- TextMate: Code and markup editor (OS X) http://www.loudthinking.com/ -- Broadcasting Brain