Welcome to the first lesson in Node.js.
In this first lesson, we would cover the following topics:
1. Overview of Node.js
Find out What is the V8 Engine?
Node.js was developed in 2009 by Ryan Dahl, an American Software Engineer.
So here is the power of Node.js: ‘you can build and run applications without a server‘.
A number of companies use Node.js in various projects. These include: Ebay, Yahoo!, Paypal, GoDaddy and Uber among others.
2. Features of Node.js
Some key features of Node.js are provided below:
Very Fast – Application built on Node.js are very fast. This because of Node.js based on the Google Chrome’s V8 Engine. So compared to other tools, Node.js is relatively faster.
Asynchronous – This means that there is not waiting for response from server. So when a API call is made, the next call could also be made without waiting for the server’s response.Therefore we can say the Node.js APIs are non-blocking.
Easy to Get – You can easily get Node.js. This is because it is released based on the MIT licence.
Single-Threaded but Scalable – Node.js uses the model of single-thread with even-looping. In this way, the serve could respond in non-blocking manner.
No Buffering – Data is not buffered in Node.js application.
3. Where to Use Node.js
You can use Node.js in the following areas:
- I/O bound applications with high user interaction
- Data Streaming applications
- Real-time data intensive applications
- Building JSON APIs or application based on JSON APIs
- Single Page Application
However, it is not recommended to use Node.js in CPU intensive applications.
To learn how to set up Node.js, Watch the video below