O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Single-thread

Every time a new user request arrives at the backend server it will create a new thread for the request, this is the classic behavior for backend servers that don't use Node.js. Once the server sends the response to the user, it releases the thread. Handling just a few threads is not an issue but, imagine what would happen if you need to handle millions of users at the same time? Let's graph this issue:

Node.js does not have this issue because of its single-thread strategy. Instead of starting a new thread for each request, it will use the same main thread to handle all the requests and will be supported by the event-loop. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required