Why you should use NodeJs

Categories learning, NodeJs, Software Development, Start Coding
why node's

I recently started a new course about learning NodeJs on Udemy so I decided to document the things I learn in this course. All Credits are going to Andrew. This is going to be a new blog series about NodeJs. A few weeks ago I already wrote a blog post about NodeJs and what it is. This time I answer the question Why everyone should use NodeJs.


Why should You use NodeJs?

So now let’s move on and answer the question why you should use NodeJs. First of all lets be sure what NodeJs really is for this I created a blog post about How to get started with NodeJs. Make sure to check it out.

Here is a small list about NodeJs features:

1. NodeJs is fast

Node.js uses JavaScript in the backend, and that’s enough to understand how fast the codes execute. Moreover, it runs on the Google’s V8 engine, which compiles the JavaScript directly into machine code making it faster than you can imagine. Also NodeJs is using a non-blocking IO Model. I´ll give you a quick Example what non-blocking and blocking IO models are.

Blocking IO Model Example

Waiting for a friend to join a meeting point, you wait for her indefinitely.

Non-Blocking IO Model Example

You have asked someone to join you on a date, but you are not sure if she/he turns up so early, so you decide to do other works pending, or sometimes you get bored and may try asking another girl/boy for a date

2. The ever-growing NPM

Being an open-source technology, node.js has a shared repository of good-to-go tools and modules. The number of modules in the Node Package Manager (NPM) has increased at a considerable pace, just on the verge of overtaking the RoR (Ruby on Rails) gems.

3. Real-time web apps

The event-driven architecture of node.js is appropriate for real-time applications, especially chat applications and games. As both the client-side and the server-side are written in JavaScript, the synchronization process is better and quicker.

4. Productivity

The productivity of a web app increases several folds with node.js because a lot of time is saved in between the lines. Merging the front-end and back-end into a single entity makes it efficient. That also implies a lesser number of employees and more profit on your side. PayPal reported 2 times increase in developer productivity after using node.js. What’s your say on that?


Who is using NodeJs?

Now lets see which big Internet Company use NodeJs as there backend language.

Netlix

Netflox NodeJs

Netflix is arguably the biggest streaming media and VOD provider in the world. It uses copious amounts of A/B testing to run its high-capacity data-driven platform and deliver a rich experience to over 104 million subscribers worldwide. With an array of packages considered every push cycle often lead to conditional dependency and scalability glitches. It was therefore important for the company to leverage a lightweight and fast platform like Node.js, which reduced the startup time by 70 percent.

Linkedin

linkedin Nodejs

The biggest social-networking platform dedicated to business and employment, Linkedin, also relies on Node.js’ as their trusted framework. Endorsing their trust, they effectively moved the mobile-app backend from Ruby on Rails to Node.js last year. However, the Node.js development environment was still premature, but the organization benefitted immensely from this move. The new app is extremely lightweight and is at least twice as fast as its predecessor.

Uber

Uber_logo.svgUber is a famous platform that connects cab rides to customers in need of transportation services through its app. Their app has been engineered by utilizing several Node.js tools and programming languages. They constantly evolve their tech stack and have since its inception introduced many new technologies to improve business efficiency. However, Node.js is still a primary aspect of their company’s operations as it makes scaling up of resources a simplistic affair in order to accommodate rising demand for their services.

 

PS: Here is a nice blog post on Why you should use NodeJs, hope this interests you.

So that was my blog post about Why you should use NodeJs as your backend language. I’m trying to document as much as possible from the course I take on Udemy.

I hope this was interesting for you because I learned a lot of new things like the blocking IO Model or the non-Blocking IO model. Make sure to check out my Instagram.

As always goodbye and keep learning

Greetings

Moritz Vogt

Leave a Reply

Your email address will not be published. Required fields are marked *