Ruby FastCGI bindings?

Hello Everyone,

The RAA has an entry for a Ruby FastCGI implementation.

Unfortunately, both the home page
(http://fenris.codedogs.ca/~eli/fastcgi.html) and the download page
(http://fenris.codedogs.ca/~eli/fastcgi.rb) are broken links.

Does anyone know where FastCGI for Ruby has gone? Should the RAA entry
be removed, or can someone restore a link to the code?

I am specifically interested in FastCGI for Apache; does anyone know of
Ruby bindings to mod_fastcgi?

I can alternatively use mod_ruby. Would anyone like to share their
opinion?

Thanks in anticipation.

Kind Regards,
Colin Coates.

Views:

The views expressed in this electronic communication are those of the
writer and are not, unless otherwise stated, the views of Micro Nav Ltd,
Gild House, Norwich Avenue West, Bournemouth, Dorset BH2 6AW. Company
Reg No. 3014347

Confidentiality:

The addressee(s) of this electronic communication shall treat its
contents in confidence and take all reasonable steps to ensure that the
contents are not accessed or made available to any third party. No
liability arising from unauthorised access to the information contained
in this electronic communication whilst stored on any computer system or
electronic storage media outside of its direct control shall be accepted
by Micro Nav Ltd.

Virus checking:

Whilst all reasonable steps have been taken to ensure that this
electronic communication and its attachments whether encoded, encrypted
or otherwise supplied are free from computer viruses, Micro Nav Ltd
accepts no liability in respect of any loss, cost, damage or expense
suffered as a result of accessing this message or any of its
attachments.

The RAA has an entry for a Ruby FastCGI implementation.

Unfortunately, both the home page
(http://fenris.codedogs.ca/~eli/fastcgi.html) and the download page
(http://fenris.codedogs.ca/~eli/fastcgi.rb) are broken links.

Use the module called “fcgi” instead. This merges together the functionality
of two older modules, one which was pure Ruby and the other in C.

I am specifically interested in FastCGI for Apache; does anyone know of
Ruby bindings to mod_fastcgi?

Well, at the application side you don’t bind to mod_fastcgi (that is the
webserver side of things), you’d use the ‘FastCGI developer kit’ C library
instead. fcgi is a wrapper around that. In the absence of the developer kit,
fcgi implements the same protocol directly in Ruby.

I can alternatively use mod_ruby. Would anyone like to share their
opinion?

I have not compiled mod_ruby into a server, but personally I think fastcgi
rocks. It has a lot going for it:

  • in a mixed language environment, you can run Ruby fastcgi, Perl fastcgi,
    C fastcgi… all under the same webserver without having to add any
    additional modules
  • each CGI application runs as its own process or pool of processes, so you
    have better visibility, more control (e.g. you can truss them, set
    different sized pools for each application, kill them individually)

However, mod_ruby has the advantage of directly exposing the Apache API to
your program, which lets you do clever things like hooking into the URL
rewriting mechanism. FastCGI just simulates a CGI environment for persistent
processes.

Regards,

Brian.

···

On Thu, Apr 03, 2003 at 09:51:10PM +0900, Colin Coates wrote: