I know Mongrel is one of the best performing methods to host rails.
I know CGI is to be avoided because the ruby interpreter and the rails
framework have to be loaded for every request.
I know FastCGI is faster then CGI (what’s in a name ) because is
works with a long-running proces, so that the ruby interpreter, the
rails framework, the database connection, … only have to be loaded
once. And I do know that this has an influence on CPU and RAM usage
What I don’t know is the reason why Mongrel performs better:
How does http work compared to (fast)cgi?
Why is it fast? Does it need a lot of CPU power or RAM, …?
Does it only work with Apache, or can you use any server?
What exactly is Mongrel? Is it a server? An extension? …
I don’t find answers to these questions on the Mongrel homepage…
I only find guides to install it (which is super-easy by the way - as
easy a using Webrick).
Can anybody help me out please?