Re:It ain't about the callbacks, it's about the flow control
by nkallen on Friday September 06, 2013 @12:27AM
(#6338660)
I wonder if you could handle backpressure this way, somewhat analogously to a thread-per-connection with a bounded number of threads. I don't think node.js API exposes the necessary functionality, but the point is that it's possible with callbacks:
Node.js doesn't have threads so you wouldn't need atomics or locking. I don't think it's fair to say this is spaghetti, but it has some complexity, yes.
[ Parent
| on HN ]
There are no comments on this comment yet.