Node js: Open Source Cross-platform for Server-Side Development

Node JS Logo

Hey everyone, Let’s moving on with Node JS. As I mentioned above node js is an open source cross-platform JavaScript environment which has an ability to execute code separate of browser. Most people known that Node js is as an application framework, but it is a platform which may have permission to run on server-side. Thank to usage of JavaScript it has gone beyond  client-side scripting language to server-side scripting language.

Node Js History

Node Js Author

Ryan Dahl was the original author of Node js which is initially release on 27th May 2009. Node js stable release was on 06th March 2019 and then preview release was done on 14th February 2019. Node js initially supported on Linux and Mac operating systems. Though Ryan Dahl was the founder of the node js later it sponsored by Joyent. In year 2011 first node js built which is supporting windows OS and Microsoft and Joyent was implemented fo it.

So in this section, let’s try to get bit about actually what node js is.  As I mention above Node js is a cross-platform which supported on Linux, MacOS, SmartOS and Microsoft Windows etc. As well it has written by using C, C++ and JavaScript. Node js distributed development project which has event-driven architecture, and which permits to generates web severs and networking tools by using JavaScript. Most noteworthy dissimilar between node js and other languages is that node js which is responsible for non-blocking I/O nature in technical term most people known that node js has an asynchronous I/O nature. Node js is a JavaScript run-time environment which can operates single thread event loop by taking advantage of non-blocking I/O methods.

Node JS Behavior

Most server-side languages such PHP, are responsible to handle one function at a time, means while one function is in state of executing, other functions must wait till pervious function over their execution. But Node js is a one which has an asynchronous I/O nature which means node js allows multiple function to execute at a same time.

Corporate users of Node JS?

  • PayPal
  • Yahoo!
  • LinkedIn
  • Microsoft
  • Netflix
  • IBM
  • GoDaddy

Features which made Node js popular

  • Open-Source
Which services to add further capabilities to node
js applications
  • Single threaded
Which shadows single thread a prototypical with
event looping
  • Super-fast
Node js has built on google V8 JavaScript engine so
that code execution is very fast
  • Extremely scalable
For the reason that of its event mechanism helps
server to respond in a asynchronous mode

Some Terminology in Node JS

What is event loop in node js?

As we know, Node js is single threaded, which is use observer design pattern and they use non-blocking (Async) methods to maintain concurrency.

What is module in node js?

A simple or a compound functionality which are organized in sole or several JavaScript files which can reprocessed all over Node js application. Simply module is a set of reusable functions and responsible to handle core functionality. It can be use in anywhere in the node js application by using ‘required ()’ function keyword. In  a module we use ‘Export’ keyword used to ensure that function which is defined in  relevant file can be really accessible to other files.

Buffer in Node js

Which is going to make available Buffer class which going to provides instances to store raw data.

It is standard for Node Package Manager which is default package manager for Node.js packages or modules, and which is responsible to  manage dependencies midst Node js packages.

Hope I have done with Node JS….. So have a nice day, I will be meet you all with another post which is going to be interesting…..

Leave a comment