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.

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

Watch the Recording