Node.js is yet another grand coup by Java and has gained immense fame in a short time amongst developers worldwide. It is a runtime system that is largely used for creating server-side applications and is most preferred for building real-time JavaScript APIs. It is used extensively for creating a new matrix of interoperability across the internet. Apart from JavaScript, several authors, including Express.js, Hapi.js and Restify.js have also contributed towards writing the Node.js framework.
Where does it work best?
Node.js is at its best in real-time web application development with push technology. It delivers real-time web applications with two-way connections so that both client and server can initiate communication, making way of free exchange of data.
Node.js will not be at its efficient best for developing CPU-intensive operations, its best advantages shine through for building fast, scalable network applications where a number of connections with high throughput have to be handled simultaneously. This implies that the system works best for developing projects that require high scalability. Node.js operates on a single-thread, using non-blocking I/O calls and supports multiple parallel connections.
The Node Package Manager:
Node.js comes with the NPM tool which is the built-in support for package management. It contains a set of reusable components that can be easily installed via an online repository for version and dependency management. The modules can be accessed by anyone and developers can publish their own modules and list them in the repository. Popular Node.js modules that are frequently used are –
- Connect – an extensible HTTP server framework with a collection of high performance plug-ins
- Jade – a templating engine
- Coffee-script – a compiler that allows clients to write Node.js programs using Coffee
- Forever – a utility for ensuring that the node script runs continuously
- Underscore – a utility library
Original Source: Opt for Node.js
No comments:
Post a Comment