Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thin vs. unicorn for development mode on Mac?

I'm shocked that this question hasn't been asked already, but I swear I looked everywhere. Are there advantages of thin over unicorn, or vice versa, when running Rails 3 in development mode?

like image 741
Jay Levitt Avatar asked Jul 07 '11 18:07

Jay Levitt


2 Answers

I decided to go with Thin for development because Heroku runs my apps on Thin in production.

It's always a good practice to make your dev ENV match your production ENV as much as possible.

Here's a couple breakdowns of Thin vs. Unicorn, although they're a little old.

http://snaprails.tumblr.com/post/441654760/thin-vs-unicorn-performance-benchmark

http://cmelbye.github.com/2009/10/04/thin-vs-unicorn.html

like image 165
Peter Andersen Avatar answered Nov 30 '22 23:11

Peter Andersen


Unicorn runs very well on Heroku now, you may want to check this out: http://michaelvanrooijen.com/articles/2011/06/01-more-concurrency-on-a-single-heroku-dyno-with-the-new-celadon-cedar-stack/

And of course this to get a better idea of why you'd want to use Unicorn: https://github.com/blog/517-unicorn

I'm moving away from Thin now myself after exploring this more fully.

**I should note, this is only possible on the Celadon Cedar stack, which should be something you're shifting towards at this point anyway.

like image 35
ylluminate Avatar answered Nov 30 '22 23:11

ylluminate