News for hackers. Stuff that matters.
Re:Clojure's edge on Node.js by donw on Thursday July 08, 2010 @11:21AM (#1497622)
If you're doing thread-per-request, than no. If you've got an event-driven I/O system backed by a thread pool for executing parallel requests, than yes.

I set up a Rack adapter through Jetty 7 on JRuby that works exactly like this. The SelectChannelConnector is event-driven I/O, and the QueuedThreadPool handles requests in parallel.

The result? 6k req/sec on my laptop for a simple Rack app, basically the same as what's shown in these examples, since my machine is quite a bit slower, and I've clocked 10k/sec on faster machines.

(By the way, if you're interested, the Rack handler is in a gem called 'mizuno', and is at http://github.com/matadon/mizuno)

Re:Clojure's edge on Node.js by gizmomagico on Friday July 09, 2010 @03:51PM (#1501984)
If you're doing thread-per-request, than no.

Pro-tip: This time, you were looking for the word "then". But "than" really exists too, and is even used sometimes (when comparing things)!

Yeah, downvote away.

Re:Clojure's edge on Node.js by donw on Sunday July 11, 2010 @02:57AM (#1505129)
I don't usually make that mistake; I might be losing a little off the top end of my English ability, since I'm living in Japan right now.

But you're correct. :)

And I also don't downvote anything except outright spam; everybody has the right to an opinion, whether or not I agree with it.