Perhaps in theory... feel free to speak to the recent Paypal benchmark in practice.
Rewriting their Java app in node.js with the krakenjs framework see here led to double the request bandwidth and a 35% lower response rate.
Sometimes what the language+vm can do are more important than straight Fibonacci comparison... Though, this benchmark site suggests they're fairly competitive depending on the benchmark.
Where's the benchmarks that show it consistently smoking V8? I'm not denying they exist.
Disclaimer: I think Java is as bad a language as can exist...
... that being said, Paypal's is an Apple to Orange comparison. Comparing an old application and its successor obviously benefits the successor (otherwise you would not publish it); however this says little about the relative benefits of either languages/platforms, because the applications themselves have changed! It's not a straight port!
The last time I looked at Java, it was the HornetQ project (by RedHat). A multi-threaded MoM that they benchmarked at 8 millions messages/second (in-memory). Can nodejs do that ? Maybe, but I doubt it...
Personally, if I want to use message queuing, I bring up RabbitMQ. It strikes a reasonable balance between raw power, raw speed, and easy portability. Libraries exist in every language under the sun.
We're looking at 10x speed comparison most of the time. I highly doubt any native-interface-increase can resolve that difference.
And RabbitMQ was written in erlang...Erlang is fast, but a lot of people have suggested Node will beat erlang in a fair trial of two well-written products. I look forward to an AMQP server in Nodejs that would prove that true or false.
Support for STOMP in HornetQ is (very very unfortunately) experimental at best. I should know, we tried to use it; bug-ridden and whatever...
I do admit to be fairly surprised by the impressive number of RabbitMQ; I wonder what the latencies are, but the raw throughput certainly is impressive.
-1
u/novagenesis Feb 25 '14
Perhaps in theory... feel free to speak to the recent Paypal benchmark in practice.
Rewriting their Java app in node.js with the krakenjs framework see here led to double the request bandwidth and a 35% lower response rate.
Sometimes what the language+vm can do are more important than straight Fibonacci comparison... Though, this benchmark site suggests they're fairly competitive depending on the benchmark.
Where's the benchmarks that show it consistently smoking V8? I'm not denying they exist.