4 ms·
"In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node." So node's not a cancer now?
by chrismealy 15y ago
"In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node."
So node's not a cancer now?
- bbayer 15y ago+1, what about performance? Does this mean all server will be blocked while doing IO?
- alexmic 15y agoNo, it says one thread per request, not single-threaded.
- bbayer 15y agosorry. missed that one. Again, I believe multi-threading is not best approach in terms of scalability. Asynchronous io is the secret sauce of node and it distinguishes node from other server side technologies. I think, asynchronous nature doesn't suite well to meteor's approach. I will be appreciated to learn real reason.
- benmmurphy 15y agoI thought they were using fibers (https://github.com/laverdet/node-fibers https://github.com/laverdet/node-fibers) so much more scalable than threads but slightly worse performance than callbacks