Re:Heroku's Ugly Secret: The story of how the cloud-king tur...
by gizzlon on Thursday February 14, 2013 @03:59AM
(#5218532)
I don't have a stake in the Ruby webserver wars, but the unicorn site has a very good discussion about how it works internally, why it's build as it is, pros & cons etc..
This seems to be missing from most of these project sites, which are often just marketing (look! It's better!!), and therefore not very trustworthy.
From the outside it looks like the biggest differentiator in each generation of ruby servers (and, I guess, db managment systems :) is not that the new is better or worse, but simply that has different trade-offs.
Re:Heroku's Ugly Secret: The story of how the cloud-king tur...
by ylansegal on Wednesday February 13, 2013 @11:01PM
(#5217624)
I did some performance analysis on puma vs unicorn vs thin a while ago:
http://ylan.segal-family.com/blog/2012/08/20/better-performa...
Although as noted in the comments, I neglected to run threadsafe! and should have probably tried rubinius or jruby. I have been meaning to redo. Take with a grain of salt
Re:Heroku's Ugly Secret: The story of how the cloud-king tur...
by argarg on Thursday February 14, 2013 @03:49PM
(#5222146)
You should give a try to puma 2.0 currently in beta 6 (https://rubygems.org/gems/puma). Lots of performance improvements. I haven't benchmarked it but my guess is it outperforms unicorn.
Re:Heroku's Ugly Secret: The story of how the cloud-king tur...
by NatW on Thursday February 14, 2013 @12:52AM
(#5217967)
You seem have written one of the very few articles I've seen benchmarking this. I'd love to know more about how Puma compares to Unicorn (especially unicorn configurations mentioned by some in this conversation) and Thin for serving rails on Heroku. Many of the Unicorners pushing their solution don't appear to be aware of Puma and its potential benefits. I'm curious if Puma with MRI has benefits, too. Thanks!
Re:Heroku's Ugly Secret: The story of how the cloud-king tur...
by miloshadzic on Thursday February 14, 2013 @08:32AM
(#5219331)
AFAIK Puma should have a lower memory footprint on MRI than Thin but I haven't done benchmarks myself.
Re:Heroku's Ugly Secret: The story of how the cloud-king tur...
by steveklabnik on Thursday February 14, 2013 @01:37PM
(#5221086)
Also note that Rails 4 will have threadsafe! on by default, too, so if you didn't have it on here, that'll make it different for those apps.
Re:Heroku's Ugly Secret: The story of how the cloud-king tur...
by tcc619 on Wednesday February 13, 2013 @08:34PM
(#5217040)
I have been using it on a few small projects. Haven't ran into an issue yet and the setup has been really easy.
Re:Heroku's Ugly Secret: The story of how the cloud-king tur...
by pselbert on Wednesday February 13, 2013 @11:46PM
(#5217789)
We are running a smaller app on JRuby using Puma with thread safe on. It has a significantly smaller footprint, as we are only booting one server.
Overall really solid, though more useful if you can use something other than MRI.
I am using it on a small production environment with Heroku and I like it, but when we officially launch the app, should we switch to Unicorn?
[1] http://puma.io/