NGINX+SSI+TG2/Pylons

Interesting stuff here. This came up again at my new job, and I remembered that I’d forgotten to blog about it when I first saw this blog-post.

NGINX is an amazingly fast lightweight web server, and Server Side Includes (SSI) seem to be making a comeback as “composed” pages become more popular and traffic levels go up.

This is interesting because it lets NGINX provide super-fast and easy to use access to memcachd cached pages, and with SSI you can restrict the dynamic portions that have to be handled by python to the smallest possible portion of the page. If the pattern fits your application really well, you can see very significant increases in the number of requests-per-second you can achieve this way.

I’ve been fooling around with SSI+nginx too for another project, but and have been meaning to blog about it but haven’t had time to get anything ready to publish. I do intend to write a detailed tutorial on this setup someday, but for know this is a great if super-high velocity introduction to the how of SSI+Memcached+Pylons. And of course you can use TG2 with this in exactly the same way.

http://www.reshetseret.com/app/blog/?p=3

2 Responses to “NGINX+SSI+TG2/Pylons”


  1. Article you reference appears to be just a rehash of where someone did this for Ruby some time back. The original article perhaps gives a slightly more in depth explanation of the concepts. See:

    http://blog.kovyrin.net/2007/08/05/using-nginx-ssi-and-memcache-to-make-your-web-applications-faster/

    I have been of the opinion for quite a while that SSI is under valued. This was part of the reason for implementing ability to add Python code direct into SSI pages into mod_python.

    Unfortunately most seem to have the mindset of using exclusively Python, or Ruby, or PHP etc, and don’t see that the web server(s) as a whole can be seen as the application framework. In some respects this was more how things were with CGI, but the idea seemed to fade as CGI was replaced with these language specific mechanisms for web application development.

  2. Yea, that Ruby on Rails article is what got me thinking about SSI again. I should have looked it up and provided a link to it when I posted this. Thanks for the link!

Comments are currently closed.