Challenges and Opportunities for Efficient Serverless Computing at the Edge

Phani Kishore Gadepalli, Gregor Peach, Ludmila Cherkasova, Rob Aitken, Gabriel Parmer

2019 · 86 citations · 15 references

Concepts

TL;DR

Serverless computing enables task‑specific application execution without server provisioning, but traditional VM‑ and container‑based solutions are too heavyweight for edge IoT workloads that demand low latency, prompting the exploration of WebAssembly as a lightweight, near‑native alternative. This work surveys current serverless approaches, identifies performance gaps for edge deployment, and proposes the aWsm framework to address these gaps through profiling and SLO‑driven management. aWsm implements serverless functions in WebAssembly, leveraging its small memory footprint and fast invocation to provide efficient edge execution and enable function profiling and SLO‑based performance tuning. Initial tests on MiBench microbenchmarks show aWsm achieves startup times of 12–30 µs and memory usage between 10 kB and 100 kB.

Abstract

Serverless computing frameworks allow users to execute a small application (dedicated to a specific task) without handling operational issues such as server provisioning, resource management, and resource scaling for the increased load. Serverless computing originally emerged as a Cloud computing framework, but might be a perfect match for IoT data processing at the Edge. However, the existing serverless solutions, based on VMs and containers, are too heavy-weight (large memory footprint and high function invocation time) for operating efficiency and elastic scaling at the Edge. Moreover, many novel IoT applications require low-latency data processing and near real-time responses, which makes the current cloud-based serverless solutions unsuitable. Recently, WebAssembly (Wasm) has been proposed as an alternative method for running serverless applications at near-native speeds, while having a small memory footprint and optimized invocation time. In this paper, we discuss some existing serverless solutions, their design details, and unresolved performance challenges for an efficient serverless management at the Edge. We outline our serverless framework, called aWsm, based on the WebAssembly approach, and discuss the opportunities enabled by the aWsm design, including function profiling and SLO-driven performance management of users' functions. Finally, we present an initial assessment of aWsm performance featuring average startup time (12μs to 30μs) and an economical memory footprint (ranging from 10s to 100s of kB) for a subset of MiBench microbenchmarks used as functions.

References

15