Node.js - understanding Request lifecycle in 2 minutes

Oscar Brito


1. Node.js keeps a single thread for your code…

It really is a single thread running: you can’t do any parallel code execution; doing a “sleep” for example will block the server for one second:

2. Everything runs in parallel except your code (sql, ...) ....

3. Its just like browser code!

LINK:
http://blog.mixu.net/2011/02/01/understanding-the-node-js-event-loop/



Visit www.divhide.com for more informations, contacts and news about Web Development.
See other blog posts at blog.divhide.com.



Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.


Feel free to contact divhide.