Why and when to use Node js

0 votes
how to decide when to use Node.js?
Jun 14, 2019 in Others by shubham
• 7,340 points
1,038 views

1 answer to this question.

0 votes

The major reason why they are going for Node.js is because

  • It can be used both in front-end and back-end
  • It gives the runtime for the JavaScript we don't need to go for the browser every time to execute the codes 
  • It works Asynchronously and in a non-blocking manner. For Example: if you get three requests in which if your first request would 10 sec, the second request would take 2 sec and the third request would take 5 sec. The execution order of your program would be 2, 3 and 1 from this you can understand that it works Asynchronously

           And here as the 2 request doesn't wait for the first request to complete, it is working in a Non-Blocking manner. Thus making             it work faster.

  • It has the largest community called NPM where developers can share their packages and if you want the same packages in your application, you have to just install it to use it.
  • It can be built and deployed on various cross platforms like Windows, MAC, and Linux
  • High scalable because of the event mechanism
  • Single threaded 
  • And the major reason why we have to learn Node.js is that most of the companies use Node.js, so there is a large number of job opportunities too.

Use Node.js when 

  • you need to have a persistent connection between the browser and server
  • online games
  • collaboration tools
  • Chat rooms
  • Anything where what one user does with the application needs to be seen by other users immediately, without a page refresh

To know more about Node JS, It's recommended to join Node JS Course today.

answered Jun 14, 2019 by sunshine
• 1,300 points

edited Jun 14, 2019 by sunshine

Related Questions In Others

0 votes
0 answers
0 votes
1 answer

How to communicate gRPC example working with Node.js?

hi.. you can read below link, it ...READ MORE

answered Dec 2, 2019 in Others by Narendra Reddy Dalli
2,395 views
+1 vote
1 answer

Why is the result distorted when we use threads?

A thread is basically a part of ...READ MORE

answered Jun 6, 2019 in Others by Nisa
• 1,090 points
953 views
0 votes
1 answer

How do I start studying Node.JS to create a restful API?

Node.js is an open source server environment ...READ MORE

answered Jun 11, 2019 in Others by ArchanaNagur
• 2,360 points
998 views
0 votes
1 answer

how to safely deploy npm install without it causing inconsistencies?

The recent versions on npm generates a ...READ MORE

answered Apr 11, 2018 in DevOps on Cloud by DareDev
• 6,890 points
1,001 views
0 votes
1 answer

Unable to request channel creation using Rest Api

I'd recommend taking a look at the ordering ...READ MORE

answered Jul 16, 2018 in Blockchain by Perry
• 17,100 points
901 views
0 votes
1 answer

Why do we use Body-parser in Node.js?

For understanding this first you need to ...READ MORE

answered May 20, 2019 in Others by sunshine
• 1,300 points
8,053 views
+1 vote
1 answer

what is the difference between error and stderr in Node.js?

Error is an object created by Node.js to handle ...READ MORE

answered Jul 4, 2019 in Others by sunshine
• 1,300 points
2,448 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP