TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I'd rather Go complain about Rails

15 pointsby alediaferiaabout 10 years ago

4 comments

annonabout 10 years ago
It&#x27;s stopping at 4 connected clients when running nginx+passenger because you are exhausting all the workers. You need to up the process limit if you are going to have workers that never complete their task for a long time, and then you need to worry about running out of memory if you have too many processes. Here&#x27;s the passenger config information for that: <a href="https:&#x2F;&#x2F;www.phusionpassenger.com&#x2F;documentation&#x2F;Users%20guide%20Nginx.html#_resource_control_and_optimization_options" rel="nofollow">https:&#x2F;&#x2F;www.phusionpassenger.com&#x2F;documentation&#x2F;Users%20guide...</a><p>I wouldn&#x27;t recommend the approach you are taking if you wanted to build this in ruby. Have you looked in to Event Machine? <a href="https:&#x2F;&#x2F;github.com&#x2F;eventmachine&#x2F;eventmachine" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;eventmachine&#x2F;eventmachine</a>
评论 #9546758 未加载
pjmlpabout 10 years ago
TL;DR; Native code generation implementation of programming language A outperforms interpreter implementation of programming language B.
评论 #9512457 未加载
radiospielabout 10 years ago
I am not really sure how Rails behaves these days behind an evented web server, and I also don&#x27;t know if nginx+passenger offer such a setup; but I was running a similar application with Sinatra+Thin, which handled hundreds, if not thousands connections easily. Especially the number of 4 successful connections and then none make me suspect that something in the Rails setup was broken and&#x2F;or that Rails still does not support long running requests.
andrewvcabout 10 years ago
This article is a bit absurd. Any experienced rubyist would tell you Rails sucks at this use case. Node&#x2F;Go will absolutely kick ruby&#x27;s ass here every day.
评论 #9512691 未加载