In this first video of my Node JS Performance Optimizations series, I show you how to level up you Node JS skills by managing the Event Loop phases the right way. I provide simple, yet in depth explanations and examples of how the Event Loop works as well as how to best interact with it to write performant Node apps.
The tutorial is divided into 4 main sections:
Quick Points about Node JS
Video Location – 00:45
Before diving in to the detail of what makes the Event Loop tick (mind the pun 😎), I go over a few basic points that everyone needs to first understand about Node and the Event Loop.
Video Location – 02:37
In this section I provide an overview of the the 5 asynchronous functions you can use to interact with the Event Loop.
Phases of the Event Loop
Video Location – 03:55
Using a simple diagram of the Event Loop, I explain the 5 main phases that make up a Cycle (Tick) and what each phase is used for.
The Event Loop in Action
Video Location – 09:15
I demo in realtime how to interact with the Event Loop using the 5 mentioned asynchronous functions.
Video Location – 17:43
Finally, I provide a few quick tips on how to write good, performant Node JS applications.
This is but a first of many tutorials to come. At Agilit-e we strive to better ourselves and our processes, and we will continue to share our knowledge as and when we learn better practices. Our focus is primarily on the MERN Stack (MongoDB, ExpressJS, ReactJS, NodeJS), as well as integration and cloud architecture.
Please support us by subscribing to our YouTube channel and/or liking our videos. Please also feel free to comment, ask for help, or just generally chat to us.
Till next time. Cheers 🙂