-2

I want to understand more exactly what happens when a server receives a client request on a Node.js server. With a more traditional server, a new thread is created to handle the new client session. But in Node.js and other event-loop style servers, what exactly happens? What part of the codebase first gets executed? With node, I am almost certain something in the http module handles the new request first.

I want to know a little more about the details of how this works in a sort of compare and contrast style between the two types of handling of client connections.

Alexander Mills
  • 90,741
  • 139
  • 482
  • 817

1 Answers1

1

In a nutshell:

Community
  • 1
  • 1
josh3736
  • 139,160
  • 33
  • 216
  • 263