This research, originally presented at WOSC ’19, provides a deep dive into the architectural trade-offs of the open-source serverless ecosystem. By benchmarking four major platforms—Nuclio, OpenFaaS, Knative, and Kubeless—the study reveals how low-level design choices in networking and process management dictate real-world performance.
Overview
The researchers systematically compare four Kubernetes-based serverless platforms, identifying how architectural "sidecars," process forking models, and networking paths create significant performance bottlenecks. Their findings show that while serverless abstracts away infrastructure, the specific choice of platform can result in a 10x difference in throughput and vastly different auto-scaling responsiveness.
The Problem: The "Black Box" of Serverless
Serverless computing (Function-as-a-Service) is often marketed as a "black box" where developers simply upload code. However, for organizations running private clouds using open-source tools, this involves complex interactions between Kubernetes, API gateways, and function runtimes. The authors address a lack of comparative understanding regarding:
- Overhead: Latency added by internal components like sidecar proxies.
- Scaling: Responsiveness to sudden "bursty" traffic.
- Efficiency: How process models (forking vs. warm workers) affect resource utilization.
Methodology
The platforms were deployed on a dedicated Cloudlab testbed. To ensure a fair comparison, the team standardized on Python 3.6 and used wrk for HTTP load generation. They evaluated three invocation modes: Direct Call (bypassing gateways), Local Call (within the cluster), and Ingress/Gateway (standard external route). Performance was measured using a "Hello-world" no-op function and an "HTTP-workload" function for data-intensive tasks.
Architectural Trade-offs
The study highlights how different internal structures impact performance. For instance, Knative utilizes a "queue-proxy" sidecar, while Nuclio uses an integrated Event Listener.
Key Insights
- The "Forking" Penalty: Kubeless performed poorly because it forks a new process for every request. In contrast, Nuclio’s architecture uses multiple warm worker processes within a single container, allowing it to handle significantly higher request volumes.
- The Sidecar Tax: Knative’s "queue-proxy" container introduces higher communication overhead compared to Nuclio or OpenFaaS, which handle requests more directly.
- Scaling Logic: Knative scales based on concurrency (active requests), proving more responsive to spikes (10 pods in 12s) than OpenFaaS, which scales based on RPS (26s for the same pod count).
- The "Sticky" Connection Problem: A major finding was that the OpenFaaS gateway often maintained long-lived connections to the first pod created, leaving newly scaled pods idle while the original pod remained overloaded.
Performance Results
Nuclio dominated the baseline tests, achieving approximately 3000 RPS for direct calls—nearly double that of Knative (~1500 RPS) and far exceeding Kubeless (~200 RPS).
Routing through an API Gateway/Ingress typically adds 1ms of latency and can reduce throughput by nearly 50% compared to direct pod invocation. While Nuclio is fastest for small payloads (<1KB), OpenFaaS and Knative become more competitive as payload size increases, suggesting better efficiency in handling large data buffers.
Conclusion
The research concludes that simple RPS or concurrency-based scaling is often inadequate for complex workloads. The choice of platform—and specifically its process management model—is the primary driver of performance in the open-source serverless ecosystem.
Summary updated