Update: Check out my tutorial on How to host a Rails app with Phusion Passenger for Nginx.
Be Careful with that Latte
Earlier this week, I consulted on a client’s Rails app deployment. The client was trying to deploy his Software as a Service Rails app on an Ubuntu distro using Apache and modruby. Everything sounded decent until I heard modruby.
I nearly fell off my overpriced Starbucks bar stool! I couldn’t phantom someone using modruby. Its unbelievable class sharing issue coupled with its lack of maintenance is a disaster waiting to happen.
I couldn’t let my client do that. “Have you heard of Phusion Passenger for Nginx?” I said. “Let me tell you all about it…” That’s why they pay me the big bucks!
###Nginx, Passenger and Ruby Enterprise Edition (REE)
Nginx is a powerful, lightweight, high-performance Web server. Phusion passenger a.k.a. mod rails is thee pre-eminent Ruby on Rails application server.
Combined with Ruby Enterprise Edition (REE), your next Rails app could use 33% less memory. On average, that’s about 250MB less memory footprint versus another infrastructure strategy. All that cost savings for the same app!
Finally Some Syntactic Sugar with your Coffee
Take this common Web server task written in Nginx:
Compare this same task in Apache:
Nginx is intuitive and expressive and as a developer I choose to write this task in Nginx. It just feels less heavy and I appreciate not having to deal with the XML hell in the long run. Thanks Nginx!