FastCGI Resurgence

This is a great read on the history and role of FastCGI given the rise and popularity of "CGI Frameworks", as the author calls them, like Rails, Django, and Zope. One of those rare entries where I learn a lot from each paragraph.

Why does this matter? Because these are large frameworks written in interpreted languages and using CGI (the other technology still supported everywhere that lets you tell the web server to run some code) you have to load the whole shebang from scratch ON EVERY REQUEST. Performance will be shit, trust me, and so for anything but development with these “megaframeworks” CGI is completely unfeasable. You need a way of getting all that code loaded into memory and have it stay persistent across requests. That’s what you get with an Apache module, and that’s what you get with FastCGI. The renewed interest in FastCGI is because suddenly PHP’s assumed rule of the webdev roost has been called into question and now you have these compelling competing frameworks, written in competing languages, needing persistance on the web server and they’re not going to get it with an Apache module.

Related Items

This past weekend, my colleague and friend Sandy Smith participated in Election Hackathon 2012 (read his take of...
I quietly launched Soccer Blogs earlier this month but, after some useful critiques from my design friend Nam-ho, I...
Why you don't want to host your own video if you can avoid it. Please, just save yourself a headache, and host your...
The function here will take an HTML fragment and return an array of useful images it finds. /** * extractImages...
This is a cool utility that uses YSlow! and PhantomJS to measure your site's speed across many pages. Should be good...
Adam Culp posted the 3rd article in his Clean Development Series this week, Dirty Code (how to spot/smell it). When you...