What is Node.js and What’s the use of Node.js? – Part 1


Hello all how are you? Today is going to be the best day because I am going to show you how to work on Node.js and how to install it on your operating systems.

First of all question arises on your mind that what is Node.js , why we are studying it and all but I am sure when you will learn its features you will see the power of Node.js.Basically Node is developed by Joyent Inc . and supported by Google also.

Lets take an example – Suppose their is one Handler at Coffee shop (NODE)with 3 co-worker and their is 3 customers A,B and C. 

A wants coffee and he asked for the same to Handler(NODE) with a one port number and Handler transfer this order to one of its co-worker . Immediately Handler will handle and will make order of B and C also and transfer their orders to its co-workers and then when order is complete then co-worker will output back to Handler(Node) and Handler will give back to customers , So in the above example we learnt that Their is no Deadlock occurs on Node I/O operations. and it is event driven.

So Quick start with What, why and How in Node.js .

What is Node.js and Why we are using it these days?

1). Node is Hottest technology for server side scripting and its work is same as PHP , ASP,JSP or other languages do but implementation and way of working is different from all tradition languages.

2).  It is server side scripting written in Javascript.

3). It has different modules to handle the operations  like express,socket.io,Http and all.

4). Better than any other language to code server side and it is very useful in Real Time Communications.

5). It is based on Asynchronous event driven framework and so that many connections can work simultaneously.



6). Design for developing scalable Network Applications. 

7). Non-Blocking I-O model so that light weighted and easy to use.

8). Easy use with Json (Java script object notation) and connection with Android.

9). Upon each connection their is Callback will fire and if their is no connection then Node will go on sleeping mode.

10). Working on different Threads simultaneously is inefficient and difficult to use,and Node.js provide no deadlocking during communications.

11). It’s designed are influenced by Pythons Twisted and Ruby’s Event Machine.

12). So as we have learned that it is based on single Thread it doesn’t mean we can’t create multiple threads , Yeah ! that so interesting about  Node.js we can create multiple threads by making child processes and that are easy to communicate by using child_process.fork() built upon the same module clusture() .

13). Ajax Like stuff can be done on server side also. Best use in Chat Rooms,online Games etc . image source[learn2crack].

Feel free to ask anything and do subscribe us for more tutorials on Node.js with Android. Happy learning.



One thought on “What is Node.js and What’s the use of Node.js? – Part 1

  1. Pingback: How to Install or Setup Node.js Enviroment on Windows and Ubuntu - Part-2 | Android Arena

Leave a Reply

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