Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Voxera108835yAsking for a perfect diagram or a two line answer will get you that kind of answer as it sounds like a homework question.
That said, event loop basically is a loop pulling and handling events one at a time.
In node, all requests are put in a queue and the event loop processes them one by one.
Thats why you do mot want to put any heavy processing in the main method, and need to use async for any blocking operation or the server will stall and could lock up.
Related Rants

When there are only 2 pages on Google you know you're in serious shit.
This is where US's bandwith is going
My dog learning nodejs.
Can anyone explain to me
@nodejs
Event Loop in two lines ? or a perfect diagram?
question
nodejs