Abstract
Cloud developers currently face a dichotomy between the flexibility of Virtual Machines (VMs) and the operational efficiency of Function-as-a-Service (FaaS). While VMs support traditional networked applications, they require manual scaling and management. Conversely, FaaS offers extreme elasticity but necessitates significant code refactoring. This paper introduces the Imaginary Machines (IM) model, a novel approach that allows unmodified, VM-based applications to run on serverless infrastructure. By utilizing network traffic as a signaling mechanism to instantiate functions on-demand, the IM model provides the benefits of serverless execution without sacrificing the familiar "network-of-hosts" programming paradigm.
Introduction
The evolution of cloud computing has been marked by a persistent trade-off. Virtual Machines offer a familiar environment for software like databases and web servers, yet they demand constant management and often lead to resource over-provisioning. Serverless FaaS, such as AWS Lambda, solves the management and billing issues but imposes a restrictive, event-driven architecture that is incompatible with most legacy and distributed software.
Previous research, such as the Boxer framework, demonstrated that unmodified applications could run on FaaS overlays. However, these systems still required "serverful" orchestration—manual intervention to define when and where functions should start. The Imaginary Machines model addresses this final hurdle by automating infrastructure orchestration through transparent network interception.
The Imaginary Machines Model
The IM model functions by maintaining two distinct perspectives of the computing environment:
- The Application Perspective: The software operates under the assumption that it is deployed on a cluster of traditional, always-on networked hosts. It communicates via standard protocols (e.g., TCP/IP) and connects to IP addresses or hostnames as it would in a standard data center.
- The Platform Perspective: The underlying platform acts as a transparent orchestrator. It monitors network signals rather than explicit API calls. When a process attempts to communicate with a destination host that is not currently active, the platform intercepts the packet, instantly instantiates a FaaS function to represent that host, and routes the traffic accordingly.
This approach transforms network events into scaling triggers. By using low-level network traffic as the "signal," the system can scale up or down automatically. When a host becomes idle, the platform can suspend or terminate the function, ensuring true pay-as-you-go utility.
Feasibility and Resource Parity
A common critique of serverless models is that functions are too resource-constrained for complex applications. However, the authors highlight that modern FaaS capabilities have reached a tipping point. For instance, an AWS Lambda instance with 10GB of RAM and 6 vCPUs now exceeds the specifications of the largest EC2 instances available fifteen years ago—the era when many foundational cloud architectures were established.
To demonstrate feasibility, the authors reference several industry-standard benchmarks and distributed systems that have been successfully run on FaaS-based overlays in preliminary studies, including:
- DeathStarBench: A comprehensive microservices benchmark.
- Apache Spark & Drill: High-performance distributed data processing engines.
- Apache Zookeeper: A complex coordination service for distributed systems.
The success of these unmodified systems suggests that the IM model is capable of supporting the logic and resource requirements of contemporary cloud services.
The Latency Trade-off
The primary technical challenge for Imaginary Machines is the "cold start" latency associated with FaaS. Currently, instantiating a new function can take approximately 200ms. The authors argue that this delay is comparable to wide-area network (WAN) latencies. Since most distributed applications are already engineered to handle network jitter or slow connections, they are inherently resilient enough to tolerate the brief pause required to "wake up" an Imaginary Machine.
Conclusion and Future Work
The Imaginary Machines model represents a significant step toward "orchestration-free" serverless computing. By eliminating the need for external tools like docker-compose to manage function lifecycles, IM allows developers to focus entirely on application logic while the platform handles the complexities of scaling and resource allocation.
Future development is focused on extending the Boxer framework to fully implement the IM model. Ongoing research aims to explore more sophisticated signaling methods beyond network traffic—such as predictive analytics—to anticipate machine activation and further mitigate the impact of cold start latency.
Summary updated