Introduction to NodeJS

  • NodeJS is an open-source,cross-platform, run-time environment for sever-side and networking applications.  It is not a JavaScript framework.
  • NodeJS was developed by Ryan Dahl in 2009 on Chrome's V8 JavaScript Engine. It is written using C++ language but uses JavaScript as an interpretive language for server-client request/response processing.  NodeJS runs stand-alone JavaScript programs.
  • NodeJS is an asynchronous language .It is lightweight and efficient because of  it's event-driven  ,non-blocking I/O nature.
  • NodeJS runs on various platforms(windows ,linux , unix , mac , OS X ,).
  • Ideal for data-intensive real-time applications that run across distributed devices.
  • Not the best platform for CPU intensive heavy computational applications. It is capable of handling a huge number of simultaneous connections with high throughput .NodeJS is single   threaded. It not create new thread for each connection.



Where can be use NodeJS??



  • Data intensive real-time applications.
  • JSON API based applications.
  • Single page applications.
  • I/O bound applications.
  • Data treaming applications.


What are the advantage of NodeJS??

  • Easy to scale both horizontal and vertical.
  • High performances - because V8 engine compile the JS code into machine code directly. It caching modules into memory after the first use.
  • Easily extensible.
  • Support for common tools like unit testing.
  • Has many reusable modules - npm package manager has large no of modules. 


What are the disadvantage of NodeJS??

  • Not suitable for computational intensive tasks.
  • Has many libraries but no of robust libraries are comparatively low.
  • Asynchronous programming model is complex than synchronous model


Comments

Popular posts from this blog

Using OAuth 2.0 Authorization framework