Mac 上开发模式的 Thin 与 Unicorn?
我很震惊这个问题还没有被问过,但我发誓我到处都看过。在开发模式下运行 Rails 3 时,thin 相对于 unicorn 是否有优势,反之亦然?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我决定使用 Thin 进行开发,因为 Heroku 在生产环境中在 Thin 上运行我的应用程序。
让您的开发 ENV 尽可能与生产 ENV 匹配始终是一个很好的做法。
以下是 Thin 与 Unicorn 的一些详细分析,尽管它们有点老了。
http://snaprails.tumblr.com/post/441654760/thin -vs-独角兽性能基准
http://cmelbye.github.com/2009/10/04/thin -vs-unicorn.html
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
Unicorn 现在在 Heroku 上运行得很好,你可能想看看:
http://michaelvanrooijen.com/articles/2011/06/01-more-concurrency-on-a-single-heroku-dyno-with-the-new-celadon-cedar-stack/
当然,这是为了更好地了解您为什么要使用 Unicorn:
https://github.com/blog/517-unicorn
我现在要放弃 Thin我自己在更充分地探索这一点之后。
**我应该注意,这只能在青瓷雪松堆栈上实现,无论如何,这应该是您此时正在转向的东西。
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.