← Latest papers
💻 computer science

SCOPE: Stateful Serverless in the Edge-to-Cloud Continuum

This paper introduces SCOPE, a stateful FaaS programming model and execution platform for the edge-to-cloud continuum that utilizes dynamic session management to balance low-latency proximity with resource availability, thereby overcoming the stateless limitations of current serverless edge solutions.

Original authors: Arianna Dragoni, Paolo Longo, Alessandro Margara

Published 2026-11-05
📖 8 min read🧠 Deep dive

Original authors: Arianna Dragoni, Paolo Longo, Alessandro Margara

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a world where your digital life—your photos, your health data, your smart home controls—lives in a vast, distant warehouse. For decades, this has been the standard model of computing: your phone or sensor sends a request across the ocean to a massive data center, which processes the information and sends it back. This works well for many things, but it creates a delay, a lag that grows as the distance increases. In an era of instant video calls, autonomous vehicles, and real-time medical monitoring, that lag is becoming a problem. To solve it, engineers have turned to "edge computing," a strategy that moves processing power closer to where people actually are, placing small servers in neighborhoods, factories, and cell towers. This brings the warehouse to your doorstep, promising speed and efficiency.

However, a new complication has emerged. The most popular way to build software for these modern systems is called "serverless computing." In this model, developers write small, independent pieces of code that run only when needed, like a fleet of delivery drones that appear only when a package is ready. The beauty of this system is that the infrastructure handles all the heavy lifting of where and when these drones fly. But there is a catch: these drones are designed to be stateless, meaning they have no memory of what happened before. If a drone drops off a package, it forgets the customer's name and address immediately. For simple tasks, this is fine. But for complex applications that need to remember a user's progress, preferences, or health history, this lack of memory is a dead end. The challenge, then, is to bring the speed of the edge and the simplicity of serverless computing together, while giving these fleeting programs the ability to hold onto a user's data securely and efficiently.

This is the problem a team of researchers from Politecnico di Milano set out to solve with a new platform they call SCOPE. Their goal was to create a system that allows these temporary programs to carry a "session," a digital container holding a user's specific data, and to move that container automatically as the user moves or as the network changes. The researchers wanted to know if they could build a system that keeps data close to the user to ensure speed, but also knows when to move that data to a more powerful machine if the local one gets too busy. They did not just propose a theory; they built a working prototype and tested it in a simulated environment that mimicked the real-world struggle between a local edge server and a distant cloud data center.

The core of their solution is a concept they call a "session." Think of a session as a personal locker that belongs to a specific user. In the SCOPE system, when a user interacts with an application, the system creates a locker for them. This locker can be opened and closed by different programs as needed, but the locker itself stays intact. The innovation lies in how the system manages these lockers. The platform constantly monitors the health of the network. If a local edge server is handling too many requests and starts to slow down, the system can quietly move the user's locker to a more spacious server nearby, or even to a distant cloud data center if necessary. Crucially, the user never has to know this is happening. They simply continue their work, and the system ensures their data follows them to the right place at the right time.

To test this, the researchers set up a virtual network with three distinct locations: a client device representing a user, an edge server located nearby, and a cloud server located far away, simulating a trans-Atlantic connection. They created several types of tasks to stress-test the system. One task involved uploading and downloading large video files, which requires heavy data movement. Another involved converting speech to text, a task that demands intense computer processing power. They also created simple, lightweight tasks to measure the system's basic speed. The goal was to see how the system behaved when the local edge server became overwhelmed.

The results were revealing. When the researchers flooded the local edge server with requests, the system's response time began to degrade, just as one would expect. However, when they enabled the SCOPE platform, the system detected the overload and began to redirect traffic. It did not simply crash or slow down; it intelligently moved the workload. For new requests, it immediately sent them to the distant cloud server, preventing the local server from becoming clogged. For existing sessions that were already running, the system performed a careful migration. It moved the user's data session from the crowded local server to the more spacious cloud server. This process took time—about 1.5 seconds for a 2-megabyte session—but once the move was complete, the response time for that user dropped dramatically. The system had successfully traded a brief pause for a permanent gain in speed.

The researchers also tested how the system handled a user moving around. They simulated a client changing their physical location, which in a real-world scenario would mean moving from one neighborhood to another. As the client moved, the system recalculated the best place to store their data. It found that the system could successfully migrate the session to a new, closer node, keeping the data near the user. However, they noted a limitation: in very small networks with few nodes, the system sometimes struggled to find the absolute best location once a session had moved, because the nodes had limited knowledge of the entire network. But as the network grew larger and more complex, the system became much more effective at keeping data close to the user, even as resources fluctuated.

The study also examined the cost of moving data. The researchers found that the time it took to migrate a session was directly related to the size of the data. Moving an empty session took about 270 milliseconds, while moving a 5-megabyte session took roughly 2 seconds. This confirmed that the network bandwidth was the primary bottleneck, not the software itself. The system was efficient enough that the brief interruption caused by moving a session was a small price to pay for the significant improvement in performance that followed. In one test, moving a session from a distant cloud server to a local edge server reduced the response time from 126 milliseconds down to just 21 milliseconds.

What makes this work significant is that it bridges a gap that has long existed in the field. Previous systems either offered the speed of the edge but could not handle complex, memory-dependent applications, or they offered memory but required developers to manage the complex logistics of moving data themselves. SCOPE automates this entire process. It allows developers to write simple code without worrying about where the data lives, while the platform handles the complex decisions of where to store and move that data based on real-time conditions. The researchers demonstrated that this approach works in a heterogeneous environment, where different types of machines with different capabilities work together.

The team's findings suggest that this model is viable for real-world deployment. They showed that the system can adapt to sudden spikes in traffic, preventing the entire network from collapsing under pressure. They also showed that it can respond to the physical movement of users, keeping their data close to them. While the system is not perfect—it still requires a brief pause to move data, and it relies on a hierarchical network structure that may need tuning in very small setups—it represents a major step forward. The researchers concluded that by treating data as a mobile session rather than a static file, they can create a computing environment that is both fast and intelligent.

In the end, the paper presents a vision of a digital world that is more fluid and responsive. It is a system where the infrastructure is not a rigid grid of fixed servers, but a dynamic landscape that shifts to meet the needs of its users. The researchers did not claim to have solved every problem in edge computing, but they have provided a concrete, working example of how to make serverless computing truly stateful. Their work suggests that the future of computing lies not in choosing between the speed of the edge and the power of the cloud, but in building a seamless continuum where the two work together, moving data and processing power exactly where they are needed, exactly when they are needed.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →