• Node.js is an open source server environment.
  • Node.js is free.
  • It runs on various platforms Windows, Linux, Unix, Mac OS X, etc.
  • Node.js uses JavaScript on the server.

A common task for a web server can be to open a file on the server and return the content to the client server.

How Node.js handles a file request :

  1. It Sends the task to the computer's file system.
  2. Node.Js Ready to handle the next request.
  3. When the file system has opened and read the file, the server returns the content to the client server.
  4. It eliminates the waiting and simply continues with the next request.

Node.js runs single-threaded, asynchronous programming, non-blocking, which is very memory efficient.

What can Node.js do?

  • Node.js can generate a dynamic page of content.
  • Node.js can create, open, delete, read, write, and close files on the main server.
  • It can collect form data.
  • Node.js can add, delete, modify data in your database.

Features of Node.js

There are some of the important features that make Node.js the first choice of software architects.

  • Asynchronous and Event Driven.
  • Very Fast.
  • Single Threaded but Highly Scalable.
  • No Buffering.
  • License

Use of Node.js

  • I/O bound Applications.
  • Data Streaming Applications.
  • Data Intensive Real-time Applications (DIRT).
  • JSON APIs based Applications.
  • Single Page Applications.