Skip to main navigation Skip to search Skip to main content

Reasoning about the Node.js Event Loop using Async Graphs

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

Abstract

With the popularity of Node.js, asynchronous, event-driven programming has become widespread in server-side applications. While conceptually simple, event-based programming can be tedious and error-prone. The complex semantics of the Node.js event loop, coupled with the different flavors of asynchronous execution in JavaScript, easily leads to bugs. This paper introduces a new model called Async Graph to reason about the runtime behavior of applications and their interactions with the Node.js event loop. Based on the model, we have developed AsyncG, a tool to automatically build and analyze the Async Graph of a running application, and to identify bugs related to all sources of asynchronous execution in Node.js. AsyncG is compatible with the latest ECMAScript language features and can be (de)activated at runtime. In our evaluation, we show how AsyncG can be used to identify bugs in real-world Node.js applications.
Original languageEnglish
Title of host publicationCGO 2019 - Proceedings of the 2019 IEEE/ACM International Symposium on Code Generation and Optimization
EditorsT. Moseley, A. Jimborean, M.T. Kandemir
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages61-72
ISBN (Electronic)9781728114361
DOIs
Publication statusPublished - 5 Mar 2019
Externally publishedYes
Event17th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2019 - Washington, United States
Duration: 16 Feb 201920 Feb 2019

Conference

Conference17th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2019
Country/TerritoryUnited States
CityWashington
Period16/02/1920/02/19

Fingerprint

Dive into the research topics of 'Reasoning about the Node.js Event Loop using Async Graphs'. Together they form a unique fingerprint.

Cite this