MANAGING THE EVENT LOOP PHASES ⭕️ — Node JS Performance Optimizations

Bleeding Code - By John Jardin
2 min readAug 10, 2020

--

MANAGING THE EVENT LOOP PHASES — Node JS Performance Optimizations

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.

Async Functions

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.

Node JS Async Functions

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.

Diagram of Phases of the Node JS Event Loop

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.

Performance Tips

Video Location — 17:43

Finally, I provide a few quick tips on how to write good, performant Node JS applications.

Till next time. Cheers 🙂

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Bleeding Code - By John Jardin
Bleeding Code - By John Jardin

Written by Bleeding Code - By John Jardin

Creator of Bleeding Code, Web3 Simplified, Agilit-e & Metability

No responses yet

Write a response