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
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 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.
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.
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 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