The power of Async Hooks in Node.js

The module provides an API to track asynchronous resources in Node.js. An async resource is an object with a callback function associated with it. Because of Node’s nature, almost all things happening under the hood in Node.js are asynchronous calls, and a lot of these async resources are created.

Examples of async resources are Promises, Timeouts, Immediates (when calling setImmediate)…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sebastian Curland

Senior full-stack developer and security champion at the Nielsen Marketing Cloud.