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

How Does It Function? Characterizing Long-term Trends in Production Serverless Workloads

Artjom Joosen, Ahmed Hassan, Martin Asenov, Rajkarn Singh, Luke Nicholas Darlow, Jianfeng Wang, Adam Barker

Introduction

Serverless computing, or Function-as-a-Service (FaaS), has revolutionized cloud development by abstracting infrastructure management. However, this abstraction shifts the burden of resource orchestration entirely to cloud providers. To maintain the promise of low latency while maximizing hardware efficiency, providers must accurately predict function invocation patterns to mitigate "cold starts"—the delay incurred when a function is initialized from scratch.

Historically, research in this area has been limited by the lack of high-resolution, long-term production data. The industry standard has long been a 14-day trace from Azure, which, while foundational, is too short to capture seasonal trends and too coarse (per-minute) to reflect the high-frequency "burstiness" of real-world workloads. This paper, a collaboration between Huawei and the University of St Andrews, addresses these gaps by introducing two massive production traces and characterizing the unique challenges of long-term serverless forecasting.

The Datasets: Huawei Private and Public Traces

The researchers released two distinct datasets from Huawei’s "YuanRong" serverless platform, totaling 1.4 trillion invocations over seven months:

  • Huawei Private: This "gold standard" trace tracks 200 internal functions over a 234-day window (with 141 days of active tracking). Crucially, it provides per-second resolution for invocations, CPU/memory usage, and platform delays, allowing for an unprecedented look at fine-grained temporal dynamics.
  • Huawei Public: This trace covers over 5,000 functions from public FaaS offerings over 26 days. While recorded at per-minute resolution, it includes rich metadata such as programming languages (with Python and Node.js being the most prevalent) and package sizes.

Statistical Characterization of Serverless Workloads

The study’s analysis reveals a landscape defined by extreme diversity and significant resource inefficiency.

The Popularity Gap

Function popularity follows a highly skewed distribution, spanning nine orders of magnitude. While some functions are invoked only once a day, others see over a billion calls. This variance suggests that a "one size fits all" scheduling or caching policy is fundamentally inadequate for production environments.

Resource Over-provisioning

A significant finding is the discrepancy between requested and actual resource usage. Approximately 60% of users request more than 1 CPU core for their functions, yet actual utilization frequently remains below 0.1 cores. This "slack" represents a substantial opportunity for providers to implement aggressive over-commitment strategies to reduce operational costs.

Platform Overhead

For many short-lived functions, the "platform delay"—the time the system spends on scheduling and network setup—actually exceeds the execution time of the code itself. This highlights the critical need for optimizing the control plane in serverless architectures.

The Fine-Grained Long-Term (FGLT) Challenge

The authors identify a new frontier in time-series forecasting: the Fine-Grained Long-Term (FGLT) challenge. To predict a daily cycle (long-term) using per-second data (fine-grained), a model must process 86,400 data points for a single day of context.

Most modern deep learning models struggle with this scale. The sheer volume of data required to "look back" far enough to identify periodic patterns often leads to memory exhaustion or training failure. Furthermore, the study demonstrates that per-minute logging "smooths over" the data, hiding the true burstiness of the workload. Using Sample Entropy, the researchers proved that per-second data reveals significantly higher complexity, meaning providers relying on coarse logs are likely under-prepared for sudden traffic spikes.

Forecasting Benchmarks and Results

The researchers benchmarked eight models, ranging from classical mathematical techniques to state-of-the-art neural networks, using a Global Univariate approach (training on multiple functions simultaneously to learn general patterns).

  • Simple Beats Complex: Surprisingly, FFT (Fast Fourier Transform) extrapolation—a classic mathematical method—often outperformed complex neural networks in predicting large-scale trends. Its ability to handle long-range periodicities without the memory overhead of deep learning makes it a formidable baseline.
  • Neural Network Performance: Among the AI models, N-HiTS proved to be the most robust and memory-efficient. However, even N-HiTS reached its limits after ingesting approximately 18 days of per-second data.
  • The Peak Prediction Problem: While models are generally effective at predicting the "shape" of diurnal patterns, they remain poor at predicting the exact magnitude of sudden, aperiodic bursts.

Conclusion

By providing high-resolution, long-term traces, this research exposes the limitations of current serverless orchestration and forecasting. The introduction of the FGLT challenge suggests that the next generation of cloud resource management will require specialized AI architectures designed to handle massive input sequences. For now, the data suggests that simpler mathematical models remain highly competitive, and that addressing the massive "slack" in user-requested resources remains the most immediate path to improving serverless efficiency.

Summary updated

BibTeX
@inproceedings{joosen2023how,
  author = {Artjom Joosen and Ahmed Hassan and Martin Asenov and Rajkarn Singh and Luke Nicholas Darlow and Jianfeng Wang and Adam Barker},
  title = {{How Does It Function? Characterizing Long-term Trends in Production Serverless Workloads}},
  booktitle = {SoCC},
  year = {2023},
}
Figure