Bracing against the wind  
www.documentroot.com  

Tuesday, May 24, 2005

Pure Perl CGI Server

I wrote a rather efficient bare-bones web server that is only capable of serving perl CGI programs. The very cool thing about it is that it's single-threaded, like thttpd.

Since the webserver is written in perl, you're not execve'ing on every hit. And the server itself is very lightweight, so dprof will probably tell you that slowdowns are coming your CGI.

Note: If your perl program ever blocks on IO, don't think about using this server. But you wouldn't do that, would you?

In summary, if you have a perl CGI that's slow under Apache and you need to handle hundreds of CGI requests per second on a cheap box, ppcgid might help.

Let me know if/how you find it useful.

Labels: ,


[View/Post Comments] [Digg] [Del.icio.us] [Stumble]

Home | Email me when this weblog updates: | View Archive

(C) 2002 Erik Aronesty/DocumentRoot.Com. Right to copy, without attribution, is given freely to anyone for any reason.


Listed on BlogShares | Bloghop: the best pretty good | Blogarama | Technorati | Blogwise