NodeJS
NodeJS is the server side platform built on V8
engine. Perfect for data intensive real time applications.NodeJS is open source. NoeJS
applications are written by JavaScript. Can run on OSX Microsoft Windows and Linux.
NodeJS provides the rich libraries of java Script modules. It is the combination
of the runtime environment and JavaScript libraries.
Features of NodeJS
- Asynchronous and Event Driven-It means non-blocking. NodeJS server never waits for API return data. Server moves to another API after calling it move it to previous API call.
- Very Fast-It is very fast in code execution.
- Single threaded but highly scalable - NodeJS use to single threaded programs. But can provide large number of requests than Apache HTTP Server.
- No Buffering-No buffer any data and give simply output the data in chunk.
- Users of Node.js-eBay, Genaral Electic, GoDaddy, PayPal,Uber, Yahoo etc.
Advantages
- Ability to use single programming language to one end to other end.
- Easy to scale horizontal and vertical. Horizontal scaling means application run more than one laces concurrently. Vertical scaling means application break down to some parts.
- Compile the JS code to machine code directly.
- Increase performances.
- Support for unit testing tools.
Disadvantages
- There are large number of libraries available so actual number of powerful libraries are low.
- Not good for powerful computational tasks.
- Asynchronous model programing is complex.
I/O bound applications, Data Streaming
applications, Data intensive real time applications, JSON APIs based
applications, Single page applications use NodeJS technology. But not use for
CPU intensive applications.
No comments:
Post a Comment