Node.JS…What is it?
It streamline building fast data-intensive applications! These applications get and send data through a back end service called an API. The API serves as an interface between different programs so they are able to talk to each other.
Node is “Async”
Asynchronous, non-blocking servers, like ones made in Node, only use one thread to service all requests. This means an instance of Node makes the most out of a single thread. This means the server can serve a lot of request without requiring more server hardware; which is expensive.
When requests arrive at the server, they are serviced one at a time. However, when the code serviced needs to query the DB for example, it sends the callback to a second queue and the main request continues to run; it doesn’t wait. Now when the DB operation completes and returns, the corresponding callback is pulled out of the second queue and queued in a third queue where they are pending execution. When the engine gets a chance to execute something else, it picks up a callback from the third queue and executes it.
That, is a good news and open up lot of great opportunities for developers and companies aiming to build a fast, scalable applications that demand data intensive processes