Thursday, February 20, 2020
Home Node.js Features of Node.js

Features of Node.js

Author

Date

Category

As we have already discussed in my last article, Node.js is an open source JavaScript framework which is used for developing server-based applications. It is a cross platform runtime environment used for developing server-side web applications. The major benefit of Node.js over other frameworks is, it can be run on a wide variety of operating systems. Now let us discuss of some of the key features of Node.js.

Asynchronous & Event Driven

Asynchronous event driven IO helps concurrent request handling, which is the biggest selling point of Node.js. This feature basically means, if a request is received by Node.js for some operation, it will be executed in the background and continue with processing other requests at the same time.

function add(number1, number2, callback) {
	callback(number1+number2)
}
var k = add(5,6, function(response) {
	console.log(response);
});

In the above example, it looks like some addition is taking place and after that another work happens. In other programming languages the bunch of lines will only be executed once the addition operation is complete.

But in case of Node.js, we have used a callback function. Here, the addition operation will start in the background and other process can happen simultaneously while the addition operation is happening. Once the process is completed, the anonymous function will be executed and the result will be printed in the console log.

The V8 JavaScript runtime engine

Node.js uses the V8 JavaScript runtime engine, which is being used by Google Chrome. Node.js has a wrapper over the JavaScript engine which makes the runtime engine much more faster which makes the processing of the requests in Node.js much more faster.

Another key functionality of Node.js is the ability to handle concurrent connections with very minimal overhead on single process.

Active Developer Community

Node.js uses JavaScript libraries, which is another benefit for the developers as a huge portion of the developer community is well aquatinted with different JavaScript libraries. Hence, It makes the learning process easier for someone who knows JavaScript already.

The most important factor of any programming language is, the developers community around it. Node.js has a huge community of developers using it daily. Because of the active community, the framework gets regular updates and patches, making the framework always up-to-date with latest trends.

We will learn about the installation part of Node.js in the next article.

2 COMMENTS

  1. Sir, I just go through your content. Its really amazing to know more about Node.js. Keep it up.

    I have a query. What is the basic requirement to be an expert in Mean Stack Development.

    • Hey Senthil, to become an expert in Mean Stack Development, takes time and effort. You need to have a clear idea about different concepts in Javascript (like callbacks, deferred and promise etc.) for it, as you are going to use it almost every where during your time as a Mean Stack Developer. If you want to know more about it, I can make a list of pre-requisites on this blog soon. Do let me know.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Subscribe to our newsletter

Snehasish Nayak
I am Snehasish Nayak, a Senior Programmer at NIC, Bhubaneswar and a Google Product Expert.

Recent posts

Recent comments