3 ms·
Great explanation--the light bulb finally went on for me regarding node.js. Regarding the other framework event models (esp. EventMachine), is it beneficial or
by cpher 15y ago
Great explanation--the light bulb finally went on for me regarding node.js.
Regarding the other framework event models (esp. EventMachine), is it beneficial or wise to use node for the I/O intensive stuff and another framework (e.g. rails) for the rest? Or does it make more sense to stay in the Ruby world? I'm sure there are lots of caveats to this question but it would be nice to see how node.js can integrate with existing web frameworks rather than trying to build everything with node.
- pchristensen 15y agoI've had this question myself - how much of the benefit of Node is because of Node, how much is because of JS/V8, and how much is because of evented programming generally? For instance, if you switch from Rails to EventMachine, will you get most of the benefits of Node, or will you still be bogged down by Ruby's speed and resource consumption?
- colin_jack 15y agoI've not seen anyone do a proper investigation, I definitely think it would be interesting.
- akavlie 15y agoA lot of it is thanks to V8 I think. But an issue commonly raised with EventMachine (and gevent etc. on Python) is that many common libraries contain blocking code that you cant get rid of, whereas Node modules have all been programmed to avoid blocking at all costs.