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 language | English |
|---|---|
| Title of host publication | CGO 2019 - Proceedings of the 2019 IEEE/ACM International Symposium on Code Generation and Optimization |
| Editors | T. Moseley, A. Jimborean, M.T. Kandemir |
| Publisher | Institute of Electrical and Electronics Engineers Inc. |
| Pages | 61-72 |
| ISBN (Electronic) | 9781728114361 |
| DOIs | |
| Publication status | Published - 5 Mar 2019 |
| Externally published | Yes |
| Event | 17th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2019 - Washington, United States Duration: 16 Feb 2019 → 20 Feb 2019 |
Conference
| Conference | 17th IEEE/ACM International Symposium on Code Generation and Optimization, CGO 2019 |
|---|---|
| Country/Territory | United States |
| City | Washington |
| Period | 16/02/19 → 20/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
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver