Node.js event loop understanding (with a diagram)
The diagram does seem quite complicated. I find a king analogy quite perfect in this context to have a grey level understanding about how event-loop works. Imagine the code you want to run is a king and node is the army of servants. The day starts by one servant waking up the king and asking … Read more