Welcome to Node.js

                               Introduction to Node.js




What is Node.js?

Node.js is an Open Source, cross-platform and run time environment developed by Ryan Dhal. Node.js is developed and released 10 years ago and it started getting more popular because of the use of javascript as its main application. And on the other hand, javascript is the only option to develop web applications in the browser. The main purpose of creating Node.js is to create real-time websites with push capabilities (WebSockets).


Why you should choose Node.js?

Speed

A javascript engine called V8 is the tool that helps node js to process with the speed of lightning. v8 is developed to use in google chrome. The capability of converting javascript into machine code makes V8 super speed when it is compiling and executing javascript. The other magical thing that Node.js owns is called the Event Loop. Even though Javascript is single-threaded it allows Node.js to perform non-blocking I/O operations. This helps all the operations to speed up and work more efficiently.


LightWeight

Since Node.js runs in a single thread it makes Node.js light in weight. So we called Node.js has an event-driven structure. And it also acts as the understructure of non-blocking I/O feature.


High Performance

The most popular companies around the world such as PayPal, Uber, eBay, Netflix are using Node.js because of its high performance. All of their opinion is that they are having a superb experience with node.js.



A single language for all layers


Unlike in other languages Node use javascript for both server-side and client-side.So the knowledge on a few languages is sufficient for the developers since they can write both server and client sides using javascript. So the developers only have to deal with one single language.across all layers. This lets us reuse the code. The code reusability is a major benefit of using Node js.


Now Let's Looking into some disadvantages of Node.js.

Cons of Using Node.js

Doesn't provide Scalability :  It may need multiple CPUs to handle scalability since It doesn't support to handle concurrent requests

Unstable Application Programming Interface: The API keeps changing and at times it keeps arriving new APIs. This frequent change put developers in a difficult situation.

Asynchronous Programming Model: Even though we need the Asynchronous programming model to make our application more scalable, coding with it, is more complicated and hard.
And in another hand when you are using asynchronous programming , Codes are more likely to become clumsy, so the programmers have to depend on nested calls.

Weak Library Support System: Compared to other programming languages javascript doesn't have a very strong Library support system. So the developers have to depend on the common library systems when it comes to executing various tasks.



If we compared both the advantages and disadvantages of Node.js, it has numerous advantages despite its limitations. So if you are planning to build your application with Node.js go on and start from today onwards. It will be a great platform to work with and you will get to learn many more new feature that you have never experienced before.




Comments

Popular posts from this blog

Introduction to Express JS

Getting Start With Application Frameworks

Introduction to NoSQL