Title
Reasoning about the Node.js event loop using async graphs
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.
Year
DOI
Venue
2019
10.1109/CGO.2019.8661173
Proceedings of the 2019 IEEE/ACM International Symposium on Code Generation and Optimization
Keywords
Field
DocType
AsyncG, Dynamic Analysis, Event-driven Programming, JavaScript
Graph,Asynchronous communication,Computer science,Parallel computing,Event loop,Semantics,JavaScript,Event-driven programming
Conference
ISSN
ISBN
Citations 
2164-2397
978-1-7281-1436-1
1
PageRank 
References 
Authors
0.36
0
4
Name
Order
Citations
PageRank
Haiyang Sun1188.18
Daniele Bonetta28112.87
Filippo Schiavio311.04
Walter Binder4107792.58