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

Serverless Supercomputing: High Performance Function as a Service for Science

Ryan Chard, Tyler J. Skluzacek, Zhuozhao Li, Yadu N. Babuji, Anna Woodard, Ben Blaiszik, Steven Tuecke, Ian T. Foster, Kyle ChardarXiv 2019

Introduction

Modern scientific research is increasingly characterized by "computational fluidity." Researchers must process massive real-time data streams from instruments, offload intensive mathematical tasks to specialized accelerators like GPUs or FPGAs, and trigger complex analyses based on asynchronous events. However, traditional High-Performance Computing (HPC) environments are typically built on a monolithic batch-job model. This model requires users to request large blocks of nodes and wait in queues for hours, creating a significant "impedance mismatch" for short-duration or event-driven tasks.

To bridge this gap, researchers have introduced funcX, a high-performance Function-as-a-Service (FaaS) platform. By abstracting away complex infrastructure, funcX allows scientists to execute millions of Python functions across heterogeneous resources—ranging from local clouds to over 65,000 concurrent workers on a supercomputer.

System Architecture

The funcX platform is designed to bring the ease of commercial serverless computing (like AWS Lambda) to the specialized world of supercomputers while addressing scientific requirements such as institutional authentication and high-memory workloads.

The funcX architecture consists of a cloud-hosted service for management and distributed endpoints for execution.

The system consists of two primary components:

  1. Cloud-Hosted Service: A central REST API that manages a registry of functions and endpoints. It utilizes Globus Auth to allow researchers to authenticate using their existing institutional identities.
  2. funcX Endpoints: Software agents deployed on compute resources (clouds, clusters, or supercomputers). These agents use the Parsl parallel scripting library to interface with local schedulers like Slurm or Cobalt.

To ensure performance and security, funcX employs several key innovations. It uses containerization (Docker for clouds and Singularity/Shifter for HPC) to ensure code portability. To minimize latency, the system implements container warming, result memoization, and task batching to amortize network costs. Communication is handled via ZeroMQ to maintain reliability across unstable network connections.

Performance and Scaling

The platform was evaluated using benchmarks on the Theta and Cori supercomputers, as well as AWS EC2 instances. The evaluation focused on raw overhead, scaling capabilities, and real-world scientific use cases such as ML inference and crystallography.

Comparison of warmstart and coldstart latencies between funcX and major commercial FaaS providers.

Key results from the performance analysis include:

  • Latency: funcX achieved a "warm" round-trip latency of approximately 76ms, outperforming AWS Lambda, Google Cloud Functions, and Azure Functions in comparative tests.
  • Massive Scale: The system successfully demonstrated the ability to process 1 million functions across more than 65,000 concurrent workers on a supercomputer.
  • Throughput: The platform reached a maximum throughput of 1,500 to 1,700 requests per second on tested HPC environments.
  • Efficiency: By implementing executor-side batching, the time to complete 10,000 short tasks was reduced from 118 seconds to just 6.7 seconds.

Limitations and Future Directions

While funcX significantly advances scientific FaaS, several challenges remain. Debugging functions in remote, containerized environments is currently difficult. Additionally, while containers improve portability, some codes still require architecture-specific compilation for optimal performance on specialized HPC hardware. Future work will focus on improving multi-tenancy isolation and developing resource-aware scheduling to automatically select the best hardware for specific function requirements.

Summary updated

BibTeX
@misc{chard2019serverless,
  author = {Ryan Chard and Tyler J. Skluzacek and Zhuozhao Li and Yadu N. Babuji and Anna Woodard and Ben Blaiszik and Steven Tuecke and Ian T. Foster and Kyle Chard},
  title = {{Serverless Supercomputing: High Performance Function as a Service for Science}},
  year = {2019},
  eprint = {1908.04907},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.04907},
}
Figure