DEV Community

Discussion on: Concepts you should know to be a master of JavaScript

Collapse
 
epsi profile image
E.R. Nurwijayadi

The Event Loop is one of the most important aspects to understand about Node.js.

🕷 nodejs.dev/learn/the-nodejs-event-...

Collapse
 
javier123454321 profile image
Javier Gonzalez

Yes! Knowing how the event loop behaves was one of those things that just levels up your JavaScript significantly.

Collapse
 
mstanciu552 profile image
Mihai Stanciu

Thanks for sharing. I think I will alocate one entire article to the event loop, as I didn't want to make this one too long.

Collapse
 
epsi profile image
E.R. Nurwijayadi • Edited

I'm actually just another beginner in NodeJS world. To help more beginner, I have made a working example with souce code in github.

🕷 epsi.bitbucket.io/lambda/2020/12/0...

First defined both functions, as a sender (producer), and a receiver (customer).

Sender and Receiver

And then run both separately

Run Both in Program Entry Point

I hope this could help other who seeks for other case example.

Thread Thread
 
mstanciu552 profile image
Mihai Stanciu

Thanks for sharing. Helping each other is the only way to improve. 👍😁