Monday, 14 May 2018

001 Node.js Introduction

Node.js Introduction

      Node.js is a free open source server environment . Node.js is a very powerful JavaScript base framework built on Google JavaScript V8 engine. Node.js runs on various platform like Windows, Linux, Max Unix etc. Node.js is a cross platform client side environment for scripting JavaScript when embedded in web page.Node.js was developed by  Rian Dahl in 2010. Initial release supported by Linux and Mac OS X  and was maintained by Dahl. Node.js runs only single thread using non blocking I/O call , large number of concurrent connection can be handled by the technique context switch.


Some point of Node.js
  • Fast: Node.js is built on Google Chrome's V8 JavaScript Engine and context switch technique ,that result fast execution .
  • Single Threaded: Node.js runs a single threaded (context switch ) with event looping.
  • License: Node.js is free and comes under the MIT license.
  • No Buffering : Node.js applications does not buffer data. Application output the data in chunks of data.
  • Highly Scalable: Node.js runs a single threaded in a non-blocking way.This made Node.js highly scalable.
  • Open source: Node.js is open source , have open source community , many excellent modules to add excellent capabilities to Node.js applications.
  • I/O is Asynchronous and Event Driven: API of Node.js library are asynchronous (non-blocking) and never wait for server to return data.After a call , the server moves to the next API call.When a response from previous API call code , there exists a notification mechanism to handle it.This makes Node.js very fast.
  • Extendable : Node.js is open source. you can extend feature it as per your need.
  • Large Streaming : Streaming large content is also possible with Node.js.
  • Code Support : Node.js community is very active , large number of code is the in the GitHub.You can get it easily.
  • Module Caching : Node.js supports caching of modules. When a Node.js modules is requested first time, it is cached into the application memory. The next calls for loading the same module would not executed again.


Some disadvantage of Node.js
  • Node.js doesn’t support multi-threading.
  • Node.js doesn’t support very high computational intensive tasks.long running task, it will queue all the incoming requests to wait for execution.
  • Exception handling is difficult
Where to use Node.js
 

   1) Streaming Applications , like data streaming ,video streaming ect.
   2) Real-time Applications (DIRT)
   3) Node.js can add, delete, modify data in database.
   4) File handling ,like create, open, read, write, delete, and close ect.
   5) Generating dynamic page content.



Who use Node.js

The following famous web site use node.js on their site 
  1. Paypal
  2. Yahoo!
  3. Groupon
  4. LinkedIn
  5. Walmart
  6. Uber
  7. Ebay
  8. NASA


No comments:

Post a Comment

বাঙালির বেড়ানো সেরা চারটি ঠিকানা

  বাঙালি মানে ঘোড়া পাগল | দু একদিন ছুটি পেলো মানে বাঙালি চলল ঘুরতে | সে সমুদ্রই হোক , পাহাড়ি হোক বা নদী হোক। বাঙালির ...