NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Serverless Data Analytics with Flint

Youngbin Kim, Jimmy Lin

Introduction

Traditional large-scale data analytics frameworks, such as Apache Spark, typically require the provisioning and management of persistent virtual machine clusters (e.g., AWS EC2 or EMR). This model often leads to significant financial overhead for smaller teams or exploratory workloads, as users must pay for the cluster even during idle periods between queries.

Flint is a prototype execution engine for Apache Spark designed to address this inefficiency by utilizing a purely serverless architecture. By leveraging AWS Lambda and SQS, Flint enables a true pay-as-you-go model for big data analytics, eliminating the costs associated with idle compute resources.

System Architecture

Flint functions as a custom SchedulerBackend for Apache Spark. While users continue to write standard PySpark code, Flint intercepts the physical execution plan and replaces long-running Spark workers with ephemeral AWS Lambda functions.

The Flint architecture leverages AWS Lambda for execution and SQS for data shuffling.

Key architectural innovations include:

  • Decoupled Execution: Flint reuses Spark’s DAG and Task Schedulers but serializes tasks for execution within Lambda.
  • SQS-Based Shuffling: Unlike standard Spark, where executors communicate directly to shuffle data, Flint offloads intermediate data to Amazon Simple Queue Service (SQS). This allows short-lived, isolated Lambda functions to pass data between query stages.
  • Executor Chaining: To bypass the 300-second execution limit of AWS Lambda (at the time of development), Flint implements "chaining." Before a timeout occurs, an executor saves its state, and the scheduler triggers a new Lambda to resume the task.
  • Native Python Execution: To avoid the "cold start" delays associated with the Java Virtual Machine (JVM), Flint executors are written in native Python. This allows them to interface directly with Amazon S3 using the boto library, bypassing the overhead of piping data between a JVM and a Python subprocess.

Experimental Setup

The performance of Flint was evaluated using the New York City Taxi & Limousine Commission dataset, comprising approximately 1.3 billion trips (215 GB) stored on Amazon S3. The researchers compared Flint against a dedicated Databricks Spark cluster featuring 11 instances and 80 vCores across seven exploratory queries (Q0-Q6).

Performance and Cost Analysis

The experimental results demonstrate that serverless MapReduce is not only viable but highly competitive with traditional cluster-based execution.

Comparison of query latency and estimated cost between Flint and traditional Spark clusters across seven benchmark queries.

Latency

Flint's execution times were often comparable to or better than the dedicated cluster. For instance, in a simple line-count query (Q0), Flint completed the task in 101 seconds, significantly faster than Spark's 188 seconds. This performance boost is largely attributed to the native Python implementation and the elimination of cluster initialization time, which took approximately five minutes for the Databricks environment.

Cost Trade-offs

While Flint is more expensive on a per-query basis—for example, costing $0.59 for Q1 compared to Spark's $0.37—it offers superior economics for bursty or ad-hoc workloads. Because Flint's costs drop to zero immediately upon query completion, it avoids the "idle tax" inherent in maintaining a running cluster for intermittent analysis.

Limitations and Future Work

Despite its success, Flint faces challenges related to the constraints of serverless infrastructure. The "at-least-once" delivery guarantee of SQS necessitates the implementation of sequence IDs for message deduplication to ensure exact query accuracy. Furthermore, Lambda's strict memory and payload limits require sophisticated memory management and data splitting strategies.

Future development will focus on exploring Amazon S3 as an alternative for data shuffling and expanding Flint's compatibility to support SparkSQL and machine learning libraries like MLlib.

Summary updated

BibTeX
@inproceedings{kim2018serverless,
  author = {Youngbin Kim and Jimmy Lin},
  title = {{Serverless Data Analytics with Flint}},
  booktitle = {IEEE CLOUD},
  year = {2018},
  url = {https://openreview.net/forum?id=B3RiMyy9el},
}
Figure