Please enable Javascript to correctly display the contents on Dot Net Tricks!

Advantages and Limitations of Node.js

Posted By : Shailendra Chauhan, 31 Dec 2015
Updated On : 31 Dec 2015
Total Views : 1,036   
 

Today, Node.js is the most popular and widely used server side framework for small, large and any sized web app and web application development.

The advantages of Node.js are listed below:

  1. Open Source

    Node.js is open source, so it’s free to use and no need to pay for license. There are also many open source modules supported by Node.js.

  2. JavaScript as Programming Language

    It uses JavaScript as a programming language for both front-end and back-end which increase programmer productivity and code reusability.

  3. Scalable

    You can scale your Node.js application by using two ways – Horizontal Scaling and Vertical Scaling, which helps you to improve your application performance.

    • In Horizontal scaling you can add more nodes to your existing system.

    • In Vertical scaling you can add more resources to a single node.

  4. Better Performance

    It provides better performance, since Node.js I/O operations are non-blocking. Also, it uses V8 JavaScript engine to execute JavaScript code. V8 engine compiles the JS code directly into machine code which make it fast.

  5. Caching Support

    Node.js supports caching of modules. Hence, when a Node.js modules is requested first time, it is cached into the application memory. So next calls for loading the same module may not cause the module code to be executed again.

  6. Lightweight and Extensible

    Node.js is based on JavaScript which can be executed on client side as well as server side. Also, it supports exchange of data using JSON which is easily consumed by JavaScript. This makes it light weight as compared to other frameworks.

    Node.js is open source. Hence you can extend it as per your need.

  7. REST API Support

    Using Node.js you can also develop RESTful services API easily.

  8. Unit Testing

    It supports unit testing out of box. You can use any JS unit testing frameworks like Jasmin to test your Node.js code.

  9. Server Development

    Node.js has some built-in API which help you to create different types of Server like HTTP Server, DNS Server, TCP Server etc.

  10. Community Support

    Node.js has a wide community of developers around the world. They are active in development of new modules or packages to support different types of applications development.

Limitations of Node.js

There are following limitations of Node.js:

  1. It doesn’t support multi-threaded programming.

  2. It doesn’t support very high computational intensive tasks. When it executes long running task, it will queue all the incoming requests to wait for execution, since it follows JavaScript event loop which is single threaded.

  3. Node good for executing synchronous and CPU intensive tasks.

What do you think?

I hope you have enjoyed the advantages and limitations of Node.js. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

 
Recommended for you
 
About the Author
Shailendra Chauhan

Shailendra Chauhan is an Entrepreneur, Author, Architect, and Corporate Trainer. He has rewarded as Microsoft MVP for his exceptional contributions in Microsoft Visual Studio and Development Technologies.

With more than 7 years in hand experience Shailendra Chauhan is a polymath in the domains of Microsoft .NET technologies and an array of other technologies including JavaScript, AngularJS, Node.js, Ionic and NoSQL Databases to name but a few.

He is the author of some of most popular e-books which encompass technical Interview on Node.js Interview Questions and Answers , ASP.NET MVC Interview Questions and Answers , AngularJS Interview Questions and Answers and LINQ Interview Questions and Answers. Furthermore he is a technical reviewer for book on ASP.NET MVC 4 Mobile App Development. Know more...
 
Free Interview Books
 
10 SEP
ASP.NET MVC with AngularJS Development (offline)

Sat, Sun 05:00 PM-06:30 PM IST

More Details
7 SEP
ASP.NET MVC with AngularJS Development (online)

Weekdays (Mon-Fri) 07:30 AM-09:00 AM IST

More Details
27 AUG
ASP.NET MVC with AngularJS Development (online)

Weekend (Sat, Sun) 03:00 PM-05:00 PM IST

More Details
27 AUG
PPC Marketing (offline)

Sat, Sun 03:00 PM-05:00 PM IST

More Details
20 AUG
NodeJS Development (offline)

Sat, Sun 11:00 AM-12:30 PM IST

More Details
17 AUG
NodeJS Development (online)

Mon-Fri      06:30 AM-08:00 AM IST

16 AUG
NodeJS Development (online)

Mon-Fri     09:00 PM-10:30 PM IST

12 AUG
ASP.NET MVC with AngularJS Development (online)

Mon-Fri     09:30 PM-11:00 PM IST

5 AUG
AngularJS Development (online)

Mon-Fri     08:00 PM-09:30 PM IST

1 AUG
ASP.NET MVC with AngularJS Development (online)

Mon-Fri     07:30 AM-09:00 AM IST

24 JUL
AngularJS Development (offline)

Sat,Sun     08:00 AM-09:30 AM

24 JUL
ASP.NET MVC with AngularJS Development (offline)

Sat, Sun     09:30 AM-11:00 AM

14 JUL
PPC Marketing (offline)

Sat, Sun     12:00 AM-02:00 PM IST

11 MAY
.NET Development (offline)

Mon-Fri     9:00 AM-11:00 AM IST

BROWSE BY CATEGORY
 
SUBSCRIBE TO LATEST NEWS
 
LIKE US ON FACEBOOK
 
+