We’ve been playing today with different ways to speed up our web server, and an important thing to learn was the price of CGI processing scheme. Well, I knew that in theory, but real measurement matters a lot. We are using Apache 2.2 with mod_neko (custom module to integrate with Neko virtual machine), and mod_neko has a way to keep state across request (effectively run in FastCGI mode as you don’t need to re-initialize VM and do all this hassle for every HTTP request coming). When we enabled that, we got 5 times faster processing! This looks amazing for me. Real stress testing is still pending, but I love the results so far!
Why ‘road to FastCGI’, you might ask? Well, I was thinking to implement FastCGI support for Neko myself – and looks like I don’t need it after all…