Does serving large files block other connections from being served in Node.js?


In article I’ve just read was mentioned that that’s not recommended to return big amount of data (like pictures) through node.js because in event loop all following users would have to wait until this ‘picture’ (or something else) would be transported. Is this true?

Problem courtesy of: Ben Usman


I think this is only true if you’re not using node.js properly. If you’re correctly creating your listener, you shouldn’t end up serializing on this.

Solution courtesy of: Paul Sonier

View additional discussion.