Tam
Tam

Reputation: 12042

Should I user Apache or Nginx & Passenger or Mongrel for my Rails application

I have a Ruby on Rails application that will be a CMS in way which means it's mostly DB intensive. I expect it to have decent amount of traffic so before designing I'm choosing what servers to use. Most important for me is performance.

I heard good things about Nginx and many developers in the Rails community recommends it my only concern about it was that its version is 0.8 which is Beta I believe so I was concerned about potential problems. What is your say?

Also, I want to decide between using Mongrel cluster or Phusion Passenger. What do you think?

I'm planning to user Ruby 1.9 as it has better performance that Ruby 1.8 and I will be using VPS to host my website.

My main things is performance even if it takes longer to setup one over the other.

Your opinion is highly appreciated.

Thanks,

Tam

Upvotes: 5

Views: 6102

Answers (3)

Nick L
Nick L

Reputation: 404

I'd second for Passenger + Nginx. Very low memory and it's not too difficult to setup. What type of server are your deploying too? Specs? OS? I'd take that into consideration as well considering your available hardware. If you've got enough memory already, then it shouldn't be an issue whether its Passenger or Apache, just optimize and cache your app efficiently.

Upvotes: 9

Omar Qureshi
Omar Qureshi

Reputation: 9093

Id recommend passenger nginx, the configs are nice and tidy plus the memory footprint is really low compared to passenger apache.

Upvotes: 2

nasmorn
nasmorn

Reputation: 2150

Two comments: You can deploy any rails app to any of your mentioned servers, so no need to decide this once and for all now.

IMO mongrel clusters are no longer worth the trouble. Go for passenger on whatever server makes you happy.

Upvotes: 2

Related Questions