Posts

Understanding the event loop in Node JS

Image
If you've been following our Node.js guide, you know that Node is built on three fundamental foundations: Google's V8 JavaScript engine, a low-level API called libuv, and an event loop more commonly known as an event loop. These three elements work in complementarity to enable the processing of inputs and outputs in an innovative, non-blocking and asynchronous way - which is the hallmark of Node. While the V8 engine is dedicated to interpreting JavaScript, the API provided by the libuv library allows Node developers to access the event loop. The latter is also distinct from the internal event loop of browsers (JavaScript event loop), which allows them to execute the JS. 🧑‍🎓  Vous souhaitez apprendre à utiliser NodeJS 📖   ? Practical Node vous enseigne les bonnes pratiques NodeJS pour être opérationnel dès le premier jour ! What is the Node.js loop event? When you run a program on your computer, you create an instance linked to that program. To this can be attached one or mo...