UrbanPro
true

Learn Node.JS from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Explain How does Node.js work?

Neha B.
18 hrs ago 0 0

 

  • Single Threaded Event Loop: Node.js operates on a single thread to handle incoming requests. While this might sound limiting, it's made efficient by the event loop and the non-blocking I/O model. Instead of waiting for operations like file reading, network requests, or database queries to complete, Node.js can handle multiple operations concurrently.

  • Asynchronous Behavior: Node.js uses non-blocking I/O calls, meaning that when a request is made, it doesn't wait for the process to complete before moving on to the next request. Instead, it initiates the operation and attaches a callback function to be executed once the operation is complete.

  • Event Loop: The event loop is the central part of Node.js’s asynchronous execution model. It’s responsible for continuously checking if any callbacks are ready to be executed (i.e., when I/O operations or other events have finished) and then invoking those callbacks at the appropriate time.

  • Callback Functions: When a long-running operation is initiated, like reading from a file or making an HTTP request, Node.js attaches a callback function to the operation. The callback will only execute once the operation is completed. This allows Node.js to process other requests while waiting for the results of one.

 

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Some good resources
Clean Code by Robert C Martin, is available in my profile please download and read it, irrespective of what language you code in, it will change the way you code. Also if you code in Javascript read https://12factor.net/ https://blog.risingstack.com/javascript-clean-coding-best-practices-node-js-at-scale/ For...

Angular JS directives Principles.
Directive is very powerful feature of AngularJS. It easily wired up with controller, html and do the DOM manipulations. Angular AngularJS provide very less details about directive. I thought I will cover...

Top 6 Technology Trends for 2020
Technology has been evolving at a pace that the annual predictions about trends may seem to be outdated before they go live as a published blog post or article. The technology when evolves...

Introduction to Programming Languages
What is a Programming Language? A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages...

Controlled and Uncontrolled components in React JS.? When to Use Controlled vs. Uncontrolled Components.?
In React, controlled and uncontrolled components refer to different approaches for managing the state of form elements (such as input fields, checkboxes, and radio buttons) within a React application. In...
X

Looking for Node.JS Classes?

The best tutors for Node.JS Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Node.JS with the Best Tutors

The best Tutors for Node.JS Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more