Skip to main content
QUICK REVIEW

[Paper Review] Afterburner: The Case for In-Browser Analytics

Kareem El Gebaly, Jimmy Lin|arXiv (Cornell University)|May 13, 2016
Cloud Computing and Resource ManagementComputer Science7 references5 citations
TL;DR

Afterburner proposes a high-performance, in-browser analytical RDBMS implemented entirely in JavaScript, leveraging typed arrays and asm.js to achieve performance comparable to native MonetDB on the same hardware. The system enables low-latency, interactive analytics directly in the browser, supporting split-execution strategies and seamless integration with web-based notebooks.

ABSTRACT

This paper explores the novel and unconventional idea of implementing an analytical RDBMS in pure JavaScript so that it runs completely inside a browser with no external dependencies. Our prototype, called Afterburner, generates compiled query plans that exploit typed arrays and asm.js, two relatively recent advances in JavaScript. On a few simple queries, we show that Afterburner achieves comparable performance to MonetDB running natively on the same machine. This is an interesting finding in that it shows how far JavaScript has come as an efficient execution platform. Beyond a mere technical curiosity, we discuss how our techniques could support ubiquitous in-browser interactive analytics (potentially integrating with browser-based notebooks) and also present interesting opportunities for split-execution strategies where query operators are distributed between the browser and backend servers.

Motivation & Objective

  • To explore the feasibility of implementing a full analytical RDBMS entirely within a web browser using only JavaScript.
  • To evaluate whether modern JavaScript engines can deliver performance competitive with native database systems for analytical workloads.
  • To enable new interactive analytics patterns by moving query execution closer to the user, reducing latency and server load.
  • To explore split-execution strategies where query operators are distributed between client (browser) and server, leveraging JavaScript's ubiquity.

Proposed method

  • Implementing Afterburner as a pure JavaScript library that runs in any standards-compliant browser, with minimal dependencies.
  • Storing data in a columnar in-memory layout using JavaScript's ArrayBuffer and typed array views for efficient memory access and type safety.
  • Compiling query plans using asm.js to generate highly optimized machine code, improving performance for numerical operations.
  • Leveraging typed arrays to represent columns as contiguous memory blocks, enabling efficient iteration and vectorized operations.
  • Designing a SQL-like query interface that allows users to express analytical queries directly in the browser.
  • Supporting split-execution by enabling parts of a query to be executed on the client (browser) after data materialization, reducing backend load.

Experimental results

Research questions

  • RQ1Can a full analytical RDBMS be implemented and efficiently executed entirely in a web browser using only JavaScript?
  • RQ2How does the performance of a browser-based analytical database compare to a natively compiled system like MonetDB on the same hardware?
  • RQ3What are the practical implications of moving analytical query execution to the client-side browser for interactive analytics?
  • RQ4How can split-execution strategies be effectively designed when both client and server use the same execution language (JavaScript)?
  • RQ5What new interactive analytics workloads become feasible when query execution is possible directly in the browser?

Key findings

  • Afterburner achieves query execution performance comparable to MonetDB running natively on the same machine, demonstrating that modern JavaScript engines can support high-performance analytical workloads.
  • For a filter query on a 2M-row materialized result set, Afterburner completes in 25 ms, matching the 28 ms backend execution time (excluding network latency), showing strong client-side performance.
  • The use of typed arrays and asm.js enables Afterburner to achieve low-level memory and computational efficiency, approaching native performance.
  • The system enables seamless, low-latency client-side filtering and analysis of materialized data subsets, reducing server load and improving interactivity.
  • Afterburner supports integration with browser-based analytics tools such as Jupyter notebooks, enabling interactive, in-browser data exploration.
  • The approach opens new possibilities for hybrid execution strategies where query operators are automatically or manually distributed between client and server, with JavaScript unifying the execution environment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.