Sunday, December 1, 2013

Node.js

Lately I have been looking at Node.js. This seems like a very good tool for programmers. It leverages the concept of Event driven programming.

So why should you use Node. Instead of providing my explanation, I will quote excerpts from this article. Of course, the article is dated for those of you who read that.
  • One reason is efficiency. In a web application, your main response time cost is usually the sum of time it takes to execute all your database queries. With node, you can execute all your queries at once, reducing the response time to the duration it takes to execute the slowest query.
  • Another reason is JavaScript. You can use node to share code between the browser and your backend. JavaScript is also on its way to become a really universal language.
  • And the last reason is raw speed. V8 is constantly pushing the boundaries in being one of the fastest dynamic language interpreters on the planet. 
  • In addition to that, node's I/O facilities are really light weight, bringing you as close to fully utilizing your system's full I/O capacities as possible.