Node.js

 Node.js is an asynchronous event driven javascript run time or server side javascript.

Commonly found in microservices and api space.

Command line tools like gulp

Server less cloud functions.

Node.js is run on javascript v8 engine

Ryan Dahl is the creator of Node.js

Node.js is best for I/O intensive network apps but not for CPU intensive apps.

Node uses an event loop in a single threaded model. It means there is no simultaneous access to shared memory.

The event loop will be notified when a request to open a file has been fulfilled by the OS.

An incoming HTTP request will also fire an event.

Timers can fire an event in the future, which is also handled by event loop.

These events are typically surfaced in your application by registering callback functions.

In node the fair treatment of client is the responsibility of the app.


No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days