How does the node js server work?

Node is completely event-driven. Basically the server consists of one thread processing one event after another . A new request coming in is one kind of event. The server starts processing it and when there is a blocking IO operation, it does not wait until it completes and instead registers a callback function.24 Ara 2015

Read more