Node.Js for Web Application Development

Brief Introduction about Node.Js

Chathuranga Dissanayake
2 min readMay 14, 2022

Node.Js is a back-end JavaScript runtime environment that runs on the V8 engine which is the Chrome browser’s JavaScript engine and it is open-source and cross-platform.

Ryan Dahl developed Node.Js. Unlike React, Node.Js is good at I/O intensive tasks by the use of I/O operations non-blocking nature. Node.Js includes many JavaScript libraries to assist with basic programming so, the ‘npm’ ecosystem for Node.Js is the world’s largest open-source library.

To perform non-blocking I/O operations Node.Js has an endless loop called, Event loop, which waits for tasks, completes them, and then goes to sleep until more chores arrive.

Node.js Event Loop

Why is Node.Js essential to use for web development?

· After the initial use, performance was improved by caching modules in memory.

· Because the V8 engine compiles the JS code directly into machine code, it provides better performance.

· The npm package manager and its enormous number of reusable modules are well-built.

· Scaling NodeJS apps horizontally and vertically is simple.

· Data-intensive real-time applications.

Here are some disadvantages of the Node.Js runtime environment.

· Node.Js is an asynchronous programming model, so it is a comparatively complex model than other synchronize programming models.

· When handling Heavy Computing Tasks, performance is reduced.

· Because of its Unstable API, Node.Js invites a lot of code updates.

· Choose Carefully — A lack of library support can put your code at risk.

Express.js and Koa.Js are popular Node.Js frameworks.

I will discuss more about Express.js and Koa.Js frameworks in my next articles.

--

--

Chathuranga Dissanayake

Software Engineering undergraduate at Sri Lanka Institute of Information Technology | Tech Lover