Node.JS…What is it?

I have recently delved into working with other backend realm and I came across a technology, Node.JS. What I particularly found this technology appealing is that we can literally write backend non-blocking I/O applications using JavaScript. That is pretty amazing!

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.

Architecture

Every browser has their own Javascript engine that converts javascript into code that a computer can understand. For example, Microsoft Edge uses Chakra, Firefox uses spidermonkey, and chrome uses V8. This explains why JavaScript code can behave differently in other browsers.

Node is “Async”

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.

Benefits?

Knowing Node makes you more valuable to employers because they are already in the process of implementing JavaScript on the font-end and backend.

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
pouya javadi

Building solutions, solving problems, engaging with others are pillars of learning in life.