What is Node.js

What is Node.js

Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications.

Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

You can download here.

Advantages:

  • Web development in a dynamic language (JavaScript) on a VM that is incredibly fast (V8). It is much faster than Ruby, Python, or Perl.
  • Ability to handle thousands of concurrent connections with minimal overhead on a single process.
  • JavaScript is perfect for event loops with first class function objects and closures. People already know how to use it this way having used it in the browser to respond to user initiated events.
  • A lot of people already know JavaScript, even people who do not claim to be programmers. It is arguably the most popular programming language.
  • Using JavaScript on a web server as well as the browser reduces the impedance mismatch between the two programming environments which can communicate data structures via JSON that work the same on both sides of the equation. Duplicate form validation code can be shared between server and client, etc.
  • Node’s goal is to provide an easy way to build scalable network programs.
  • Node is similar in design to and influenced by systems like Ruby’s Event Machine or Python’s Twisted.

Leave a Reply

Your email address will not be published. Required fields are marked *