Re:A HTTP Proxy Server in 20 Lines of node.js Code
by simonw on Wednesday April 28, 2010 @10:20AM
(#1301595)
Node is designed specifically TO facilitate long-running requests. There is only one thread (it's a single-threaded, evented system). Everything is done with callbacks, so if you have a long running I/O operation you'll just add a callback which completes the current HTTP response when the long-running I/O has finished. Node is quite happy to keep thousands of such callbacks around at once for massive concurrency.
[ Parent
| on HN ]
There are no comments on this comment yet.