Thin The Fast Ruby Web Server
- The Mongrel parser (using Ragel) the root of Mongrel speed and security.
- Event Machine, a simple event-processing Ruby library that makes it possible to write scalable network I/O process.
- Rack, a minimal interface between web servers supporting Ruby and Ruby frameworks.
The performance improvements can be significant with increases up to 25% for requests/s and around 15% less memory used, although the speed is dwarfed by the time spent in Rails.
Since 0.6.1 version in January Thin supports listening to UNIX sockets as well as to TCP/IP sockets, making it even faster.
Images by Marc-André Cournoyer
Thin already supports most Ruby Web Frameworks Rails, Merb, Camping, Sinatra, Ramaze, Vintage, Swiftiply.
Thin is a 3 months old project and it is worth a try before a production release is out.
Testing with Thin looks good
You really need to benchmark your application on your hardware to know for sure, but given that regular threaded Mongrel can be in the ballpark with lighttpd+fcgi in some deployments, faster solutions like evented_mongrel or Thin should be in the ballpark and competetive with fcgi in many deployments.
Running Thin on my server
Wrote 2 articles on getting it installed which you can find on my blog...
My setup is nginx, rails 2.0.2, ruby 1.8.6, mysql 5, Ubuntu 7.10 and of course THIN.
so far pretty sweet.
Mike Amundsen May 29, 2015
Ben Linders May 28, 2015