Node.JS
Node.JS
A runtime environment for executing JavaScript code is
open source for developing server-side and networking application
Features of Node.JS
Asynchronous and
Event-Driven
The primary organizational concept of Node is to eliminate
blocking processes by using event-driven, asynchronous I/O. This design aids
developers in shaping data and increasing capacity. Node allows you to create
and organize lightweight, self-contained, and share-nothing processes that
communicate through callbacks and synchronize with a predetermined event loop.
Single-Threaded but
Highly Scalable, data-intensive, real-time
Node.js is single-threaded but in the background it uses
multiple threads to execute asynchronous code
This feature because of the non-blocking asynchronous nature of
node
Has single thread is used to handle multiple requests. It is
behind the scene of non-blocking and asynchronous concept
Very Fast
Node JS library is very fast in code execution
Where to Use Node.js?
I/O bound Applications
Data Streaming Applications
Data-Intensive Real-time Applications (DIRT)
JSON APIs based Applications
Single Page Applications
Where Not to Use
Node.js?
A CPU-Heavy Application:
A Relational Database-Backed Server-Side App
Comments
Post a Comment