MENU

Nodejs introduction

Node.js uses asynchronous programming!

A common task for a web server can be to open a file on the server and return the content to the client.

Here is how PHP or ASP handles a file request:

Sends the task to the computer's file system.
Waits while the file system opens and reads the file.
Returns the content to the client.
Ready to handle the next request.
Here is how Node.js handles a file request:

Sends the task to the computer's file system.
Ready to handle the next request.
When the file system has opened and read the file, the server returns the content to the client.
Node.js eliminates the waiting, and simply continues with the next request.

Node.js runs single-threaded, non-blocking, asynchronously programming, which is very memory efficient.

Comment(S)

May 10 2021 1:29AMhttps://www.interviewmaterial.com/QuestionsAnswers.aspx?CatID=92
Show all Coment

Leave a Comment

Post Your Blog

Category

Tag Clouds

Recent Post

About NEET National Eligibility cum Entrance Test
09-Mar-2024 by Jay Kumar
aadhaar card rules for children
24-Nov-2022 by Jay Kumar
Digital Transformation
28-Oct-2022 by Jay Kumar
The Great Kabab Factory Express Patna
11-Oct-2022 by Rajeev Katiyar
Desi Cow Ghee Benefits
29-Sep-2022 by Jay Kumar
Bitcoin Investment
26-Sep-2022 by Rajeev Katiyar
Educate About Equality
25-Sep-2022 by Rajeev Katiyar
Ravan Ke Purvjnmo Ki Kahani
25-Aug-2022 by Jay Kumar
Hindi Story of Amarnath Dham
25-Aug-2022 by Jay Kumar
Ek Nanhi Si Khushi
25-Aug-2022 by Jay Kumar

Latest News

Our Sponsors

×