Learning Node.js and express

Node.js

is asynchronous.
is single-threaded.

Events are raised and recorded in an event queue and then handles in the order that they were raised.

Blocking:  In Apache, the single thread waits for the file system to finish reading files before it can do anything else.


These are all events, and they will get handled in the order that they are raised. This is what it means when we say nonblocking, event-driven IO. We have a single thread that will respond to events in the order that they are raised.
This thread behaves asynchronously because it does not have to wait for resources to finish doing what they're doingbefore our thread can do anything else.


Comments