TL;DR
SeBS-Flow is the first platform-agnostic benchmarking suite designed specifically for serverless cloud function workflows. By abstracting cloud-specific differences into a unified model, it automatically translates a single workflow definition into optimized, native configurations for AWS, Azure, and GCP. This tool uncovers massive, previously hidden performance and cost discrepancies in how major cloud providers orchestrate distributed serverless applications.
What Problem Does This Paper Address?
While Function-as-a-Service (FaaS) simplifies deployment by abstracting away infrastructure management, single stateless functions are rarely enough for complex applications. To solve this, developers use serverless workflows to chain multiple functions together into directed acyclic graphs (DAGs).
However, the serverless workflow landscape is highly fragmented. AWS Step Functions and Google Cloud Workflows rely on static, verbose JSON/YAML state machines, while Azure Durable Functions uses an imperative, code-driven orchestration model. This architectural divide makes cross-platform performance evaluation nearly impossible and traps developers in severe vendor lock-in. Without a standardized baseline, researchers and engineers cannot fairly compare the performance, scalability, or cost of their serverless workflows across different cloud providers.
Methods
The authors introduce SeBS-Flow, a platform-agnostic benchmarking framework that bridges this gap using a three-tiered approach:
- Unified Workflow Model: Built on top of Workflow Nets with Data (WFD-nets, a variant of Petri nets), the model explicitly separates actual serverless function executions from the platform's internal orchestration ("coordinator") steps. It also introduces resource annotations to track exactly how data is passed between functions (e.g., via object storage, NoSQL, or direct invocation payloads).
- Platform-Agnostic Specification: Developers define their workflows using a simplified, portable JSON syntax that supports common routing patterns like Tasks, Maps (parallel loops), Loops (sequential iterations), Switches (conditional branches), and Parallel execution blocks.
- Platform-Specific Transcribers: SeBS-Flow automatically compiles this agnostic JSON definition into the proprietary formats required by each cloud provider (such as AWS Step Functions JSON or Azure Durable Functions Python code), ensuring near-identical workloads run across different systems.
Datasets
As a systems and architecture paper, SeBS-Flow introduces a comprehensive benchmark suite rather than a traditional static dataset. The suite consists of:
- Six Real-World Application Benchmarks: Video Analysis (object detection using machine learning), Trip Booking (implementing the SAGA pattern for transactions), MapReduce (word counting), ExCamera (parallel video encoding), Machine Learning (a model training pipeline), and 1000Genomes (a scientific workflow identifying mutational overlaps).
- Four Microbenchmarks: Designed to isolate specific system behaviors, including function chaining, object storage I/O performance, parallel scheduling, and OS noise.
Key Insights and Ideas
- The Azure Paradox (Fast Compute, Slow Orchestration): Azure Durable Functions allocates generous CPU shares and packs multiple function invocations into warm containers, resulting in an incredibly fast "critical path" (actual computation time). However, its internal scheduling mechanism and storage I/O layer suffer from massive bottlenecks, meaning highly parallel or data-heavy workflows get bogged down by orchestration overhead.
- AWS Excels at Parallel Scaling: AWS Step Functions spins up new containers rapidly and handles parallel scheduling with minimal friction, making it highly efficient for massive fan-out workloads.
- The Hidden Cost of State Transitions: Workflow pricing isn't just about compute time; cloud providers charge per state machine transition. Because AWS's state language requires fewer transitions to express the same logic as Google Cloud, its orchestration costs can be lower despite higher base compute prices.
Key Results
- Orchestration Overhead: On Azure, the orchestration overhead for the ExCamera benchmark averaged a staggering 495.5 seconds—more than 36× longer than its actual critical path computation time of 13.5 seconds.
- Overall Performance: AWS emerged as the fastest platform for three out of the six real-world benchmarks (Video Analysis, ExCamera, and 1000Genomes) due to its superior parallel scheduling and storage throughput.
- Scientific Workloads: When evaluating the 1000Genomes scientific workflow, the cloud platforms achieved near-optimal strong scaling speedups (around 1.95× when doubling parallel jobs). However, they still lag orders of magnitude behind traditional high-performance computing (HPC) systems, which completed the workflow in 7.7 seconds compared to hundreds of seconds in the cloud.
Limitations and Future Work
While SeBS-Flow successfully automates transcription for the vast majority of research workloads, it currently struggles with highly complex, non-standard control flows, such as multi-stage inputs (passing a previous function's output past intermediate steps without re-routing) or complex multi-condition switch states. Additionally, the suite is currently limited to the three largest commercial cloud providers; extending it to open-source serverless platforms like Knative or Apache OpenWhisk remains an open direction for future research.
Summary updated