i see quite a bit of code from zed shaw's mongrel in there[1].. to the extend that i think puma is simply a mongrel that uses threading.<p>you say it is using ragel; mongrel also uses ragel[2]. mongrel and z.shaw are even mentioned on the ragel project page. (and ragel is mentioned on the mongrel page[3])<p>sorry but i think puma could be more upfront about being an innovation on top of mongel.<p>otherwise nice work! code looks indeed very clean compared to unicorn/rainbows and zbattery.<p>[1]: <a href="https://github.com/evanphx/puma/tree/master/ext/puma_http11" rel="nofollow">https://github.com/evanphx/puma/tree/master/ext/puma_http11</a>
[2]: <a href="http://www.complang.org/ragel/" rel="nofollow">http://www.complang.org/ragel/</a> (mentions mongrel)
[3]: <a href="https://github.com/mongrel/mongrel" rel="nofollow">https://github.com/mongrel/mongrel</a>
IMO, its a step in the right direction to build threaded concurrency into the foundation of a Ruby web server. Events can be layered within those threads. Then you can even have a nice mix of sync / async code on a single web server running harmoniously. Also, if running just a single thread, we're in the same place as most other Ruby web server, but for those VMs that can take advantage of it, and for those stacks that can benefit, its awesome.<p>I hear you guys in the comments saying events is the way to go for concurrency in Ruby, especially with MRI. As many also know, GIL-less threads are available in modern Ruby VMs like Rubinius and JRuby.<p>I haven't tried puma yet, but I do believe in evanphx's work.<p>Also, for those interested in concurrency with Ruby, also check out: <a href="https://github.com/tarcieri/celluloid" rel="nofollow">https://github.com/tarcieri/celluloid</a> and <a href="https://github.com/tarcieri/nio4r" rel="nofollow">https://github.com/tarcieri/nio4r</a> .. looks like Tony even has a fork of puma in there too.
Puma uses a thread pool to handle requests. The only other Ruby web servers I know of that do this are Rainbows!, and Zbatery, and they're a bit obscure, unfortunately. Unlike Thin, EventMachine is not used.<p>I have it running on my Heroku instance for a day or so with no issues, though I don't get any traffic yet. :)
This seems like a neat accomplishment, but why would I use it? There is mountains of work for standard configurations including security hardening, monitoring, configuration management, etc.<p>What about this product makes it better than the other options?
What's missing in the description here is that Puma is built for Rubinius and jRuby, which both have true multithreading (no GIL).<p>I'm not sure if it's considered production ready yet though.
I'm just going to add a shout-out to a friend's project which uses Mongrel2 (Zed Shaw's new awesome application, language, and network architecture agnostic web server).<p><a href="https://github.com/ArtemTitoulenko/Angstrom" rel="nofollow">https://github.com/ArtemTitoulenko/Angstrom</a>