
verify the installation by executing the following command in command prompt or powershell.
#Node js mac tutorial install#
Install the downloaded package like you install any other windows package.ģ. Head over to page and downland the appropriate msi or exe package (32 0r 64 bit).Ģ. When the database returns results, it will send a callback to the third queue and when the engine is freed, it will execute the pending requests in the third queue. For example, when one request is processed to query the database, it will process the code to query the database and does not wait for the response, instead it sends a callback to the second queue and the code will continue running. Every request arrives at the server will be serviced at a time. For instance, if you take node.js, it uses only one thread for all service requests. Non blocking operations does not block program executions. For more information on event-driven programming, you can read this blog post What is Non Blocking I/O? What is event-driven ?Įvent driven is a programming model where the program flow is based on events such as sensor outputs, or user events like mouse clicks, inputs from other messaging sources or threads etc.


Now lets understand event-driven and non blocking I/O models before we dive in to node.js. Its distinguished feature is that you can write code in asynchronous non blocking style with the benefit of being super scalable. Node is a platform build on Google V8 java script engine with the goal to write network applications well suited for DIRT(data intensive real-time) applications.

Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.” “Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications.
