Basic concept of Node.js


Basic Concept of Node.js

Introduction:

Imagine a web application which send hundreds of requests per second to as server that only processes one request per time before moving to another request. Probably you will have some performance problems and provide a bad experience for your users.
Node.js was technology built to solve a specific problem: deal with intense asynchronous input and output events.

What is Node.js?

In simple term , Node.js is an open source JavaScript based platform for server-side programming built on chrome's V8 JavaScript engine which means that the engine that compiles JavaScript in a web browser it's the same engine that runs NOde.js in it's core and this is what makes it so fast especially for web application.

Why Node.js?

Node.js is an extremely powerful server-side platform to develop modern, reliable and scalable web application , trusted by global companies such as Netflix, Uber , LinkedIn , and PayPal.
Besides that , this platform provides other amazing features for developers.

Non-Blocking I/O

Non-blocking method receives an input and returns the output asynchronously. In other word it makes it possible for s server to receive many request without blocking the application while response is being processed in the background.

Single thread

Node.js can deal with many events at the same time with its single thread characteristic that delegates the asynchronous operation to a multi thread platform, which means that just one thread is able to handle input and outputs.

Events Driven

Node.js is an event driven technology , which means that the control flow of this server-side platform is driven by the occurrence of events So , at the moment that a Node application starts , an events and doesn't stop until the application is shutted down.

Node Package Manage

Node package Manager it's the world largest free open source library of functionalities , and can be easily imported and used in any Node application.

No Buffering

Node.js application never buffer data which dramatically reduces the processing time of uploading files , such as videos or audios . In other words , it simply data in chunks.

Comments

Popular Posts