Node js Introduction

Node.js is an open-source server side runtime environment built on Chrome’s V8 JavaScript engine used for development of server-side web applications. Node.js applications are written in JavaScript and can be run on a wide variety of operating systems.

Node.js is based on an event-driven architecture and a non-blocking Input/Output API that is designed to optimize an application’s throughput and scalability for real-time web applications.

Features of Node.js

Let’s look at some of the key features of Node.js

  1. Asynchronous event driven IO helps concurrent request handling — This is probably the biggest selling points of Node.js. This feature basically means that if a request is received by Node for some Input/Output operation, it will execute the operation in the background and continue with processing other requests.
  2. Node uses the V8 JavaScript Runtime engine, the one which is used by Google Chrome.
  3. Handling of concurrent requests
  4. Uses JavaScript to build entire server side application.

Disadvantages of Node.JS:

  • Single Threaded
  • Lack of Maturity
  • Hard to make things fault oriented: In JAVA script there are no mechanisms to resolve the errors.

Setup Node.js Development Environment:

Tools/SDK are required for developing a Node.js application on any platform :

  • Node.js
  • Node Package Manager (NPM)
  • IDE (Integrated Development Environment) or TextEditor