Quotes: If any of your handlers call a blocking method, the entire server is blocked

In Node, the entire server has one single thread, so now your code must play nice. If any of your handlers call a blocking method, the entire server is blocked. Your code has to be constructed so that it always returns immediately and is called again when a response from the database or filesystem is ready. The difference from before is that the handler logic is split. Understanding this difference is the key to understanding Node.

http://project70.com/nodejs/beginners-tutorial-node-js/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s