Tracing the Event Loop Using AsyncWrap

Trevor Norris

In order to properly understand how the event loop operates it's necessary to unwrap the many JavaScript APIs down to their basic components. This can be a tedious task. Fortunately there is now an API that allows developers to directly inspect what Node is doing at that level. The AsyncWrap API was created with many use cases in mind, but all of them centralized around the ability to know what the event loop is doing at any given time. We will explore how AsyncWrap came to be, what it means to "know" what the event loop is doing and how knowing this enables a myriad of potential uses of this compact and simple API. By the end you should be able to feel confident enough to jump into and begin using AsyncWrap.

Trevor Norris is a self-professed performance freak. He is a Node.js Core Contributor and is responsible for improving runtime performance and visibility. Trevor's background is in front-end development for enterprise level implementations, but now spends most of his time making JavaScript on the server blazing fast and predictable, plumbing the depths of V8 and libuv, and writing C/C++. Trevor's work on benchmarking, performance tuning and optimizing Node.js have changed the face of Node.js and how developers approach serverside JavaScript.

  • Better understanding of how aynsc requests work
  • What is the AsyncWrap API
  • Different ways AsyncWrap can be used for debugging

Watch on demand

*Required:The information you provide will be used in accordance with the terms of our privacy policy.


node.js reliability
nodejs javascript
node vulnerability scanning
node.js secure
node.js compliance
enterprise node.js
Node.js Consulting
Secure node.js
node.js security
enterprise nodejs financial services
enterprise nodejs