Why Node.js is being used?

Discussion RoomCategory: General QuestionWhy Node.js is being used?
Nick asked 5 years ago

Node.js uses asynchronous programming!
Node.js eliminates the waiting, and simply continues with the next request.
Node.js runs single-threaded, non-blocking, asynchronously programming, which is very memory efficient.
Tooling: Npm is the Node.js package manager and it is excellent. It does, of course, is parallel package managers from other ecosystems, but npm is faster, booming, and logical. It does a great job at defining and fix the project dependencies. It keeps packages alone from other projects, avoiding version strife.
Streaming Data: This software is good in getting high range of data without any discrepancies.
A common task for a web server can be to open a file on the server and return the content to the client.
Here is how PHP or ASP handles a file request:

  • Sends the task to the computer’s file system.
  • Waits while the file system opens and reads the file.
  • Returns the content to the client.
  • Ready to handle the next request.

Here is how Node.js handles a file request:

  • Sends the task to the computer’s file system.
  • Ready to handle the next request.

When the file system has opened and read the file, the server returns the content to the client.

Scroll to Top