Thin
Thin is an EventMachine-based web server written in Ruby for running Rack-based web apps.
Unicorn
A unicorn is a magical weaponized HTTP server for Ruby.
Others
Example |
---|
For example to implement rolling restarts in mongrel and thin you need quite a lot of steps in your deployment scripts;unicorn doesn t require as many steps but still significantly from question Which one of these is a better option to use alongside "latest rails" application? Mongrel, Thin, WEBrick and Passenger |
I often use example in development to choose between unicorn and thin for my rails server from question What is a Procfile-based application |
Jruby support - unicorn s a better choice than thin but it doesn t support jruby from question Thin vs Unicorn on Heroku |
I m running unicorn which is about 40 faster than thin on celadon cedar from question Rails Performance Tuning for Production? |
In production it is much better to use a more sophisticated server like phusion passenger or unicorn since they have better performance than thin mongrel or webrick from question How do you choose your HTTP server in Sinatra? |
If you use thin and your code doesn t clear requests very quickly then you re in trouble - since heroku uses random routing requests will stack up on a blocked dyno even if there are free dynos;using unicorn seems better if you can handle the memory hit because free dynos s less likely that all of your forks will get slow requests at the same time from question Should I use thin or unicorn on Heroku Cedar |