Introduction
Serverless computing, or Function-as-a-Service (FaaS), offers a compelling promise: developers write code, and the cloud provider manages scaling and billing. However, this model currently fails to meet the performance demands of data-intensive applications like Apache Spark or Hadoop. This research identifies that current serverless platforms are essentially "VMs in a trench coat," burdened by legacy architectural choices that hinder high-performance data analytics.
The Problem: The Serverless Gap
The authors identify three critical gaps preventing serverless from becoming a viable platform for heavy data processing:
- The Communication Gap: Platforms like AWS Lambda restrict direct inter-function communication, forcing data through high-latency external storage like S3.
- The Legacy Gap: Modern FaaS relies on MicroVMs (e.g., Firecracker). While lighter than traditional VMs, they still include a full guest OS, introducing significant startup and memory overhead.
- The Abstraction Gap: Analytics engines expect POSIX-compliant environments and networking, which are fundamentally at odds with the ephemeral, isolated nature of FaaS.
Proposed Solutions: Boxer and Dandelion
To bridge these gaps, the researchers propose a two-tiered approach:
Boxer: The Compatibility Overlay
Boxer is designed to support existing workloads today. It acts as a transparent overlay that intercepts system calls and redirects them to create a virtual networked environment. This allows off-the-shelf analytics engines to run on standard FaaS platforms without modification, providing the networking and coordination these platforms natively lack.
Dandelion: A New Serverless Foundation
Dandelion represents a radical redesign of the serverless stack, treating functions as pure, declarative units rather than mini-computers.
- Declarative I/O: Functions explicitly define their inputs and outputs. The platform manages data movement before and after execution, allowing for optimizations like data pre-fetching.
- Hardware-Level Isolation: Instead of software-heavy VMs, Dandelion utilizes hardware features such as Intel Memory Protection Keys (MPK) and Capability Hardware Enhanced RISC Instructions (CHERI). This allows multiple users to be isolated within a single address space with minimal overhead.
- System Call Elimination: By moving I/O management to the platform level, user code no longer needs to make traditional system calls, removing a major source of performance bottlenecks and security risks.
Evaluation and Results
The authors evaluated Dandelion against Firecracker, the industry standard for serverless isolation. The results demonstrate a significant performance leap:
- Latency: Dandelion achieved over 14x lower latency than Firecracker.
- Throughput: The prototype reached 3.4x higher peak throughput per machine.
- Efficiency: The shift from VM-based isolation to hardware-based isolation (MPK/CHERI) effectively eliminated the "software bloat" associated with fine-grained tasks.
Conclusion and Future Work
While Dandelion offers massive performance gains, it currently requires code to be compatible with its "pure function" model, which can make porting legacy C++ or Java applications challenging. The authors are developing a domain-specific language (DSL) to simplify the composition of these pure compute and I/O tasks. Ultimately, this research suggests that by shedding legacy OS dependencies and embracing declarative models, serverless can become the default architecture for high-performance data processing.
Summary updated