NodeJS and its Components

Posted By : RAJAT KATIYAR | 19-Jun-2016

       Node.js architecture

 

Node JS is divided into two main components which are the core units. It is built on the kernel in C and C ++. It combines Google's JavaScript V8 engine with a knot in Libuv library and protocol bindings including sockets and HTTP.

 

  • V8 runtime environment

V8 engine Google is an open source just in time, or JIT compiler is written in C ++. In recent standards, performance V8 and interpreters Spider Monkey JavaScript has surpassed others including the Nitro. It has exceeded addition, PHP, Ruby and Python performance. Because of Google's approach it is in fact predicted something that can become as fast as C.

JavaScript engine brings to assembly code directly ready for delivery by avoiding any representation mediator such as BB symbols and processes that increase their interpretation. Runtime environment is itself divided into three components Companies: compiler, optimizer garbage collector.

 

  • Libuv

The C++ Libuv library is responsible for Node's asynchronous I/O operations and main event loop. It is composed of a fixed-size thread pool from which a thread is allocated for each I/O operation. By delegating these time-consuming operations to the Libuv module, the V8 engine and remainder of NodeJS is free to continue executing other requests.

 

  • NPM

A cluster node manager, the Node Package Manager indicates, is the director of the official group for Node JS, written entirely in JavaScript. It comes bundled automatically installed with the environment knots. It is responsible for managing the dependencies for the application of knots and users to install applications allowed if available in the registry of the NPM. NPM initially was developed in 2010 with the immediate objective for quick integration into Node JS platform.

 

  • Architectural description

Node JS includes a structure through a pipeline for the purpose of efficiently data entry and production of the corresponding output. It follows the highly modular structure, but they are still tightly bounded to their libraries, and the V8 engine in particular. They also allows the input and output data format on a variety of distributed systems, which is flexible and reliable. Node JS is able to achieve the results using a single thread, and loop event.

 

About Author

Author Image
RAJAT KATIYAR

Rajat Katiyar is a very bright web app developer, he has good knowledge of JAVA, C/C++, C#.NET. Apart from this he has interest in theater and sports.

Request for Proposal

Name is required

Comment is required

Sending message..