Table of Contents
Fetching ...

GoldFish: Serverless Actors with Short-Term Memory State for the Edge-Cloud Continuum

Cynthia Marcelino, Jack Shahhoud, Stefan Nastic

TL;DR

GoldFish introduces a short-term stateful serverless actor model and a SIM invocation model to enable direct, low-latency processing of connected events in the edge-cloud continuum. By embedding actors in WebAssembly and implementing a dedicated lifecycle (LCM) and invocation (SIM) model, it preserves elasticity while avoiding frequent remote state exchanges. The prototype demonstrates substantial latency reductions (up to 92%) and throughput gains (up to 10x) against OpenFaaS and Spin across sequential and parallel workloads. These results indicate significant practical benefits for data-intensive workflows at the edge, with future plans to extend toward 3D edge computing and ML-enabled pipelines.

Abstract

Serverless Computing is a computing paradigm that provides efficient infrastructure management and elastic scalability. Serverless functions scale up or down based on demand, which means that functions are not directly addressable and rely on platform-managed invocation. Serverless stateless nature requires functions to leverage external services, such as object storage and KVS, to exchange data. Serverless actors have emerged as a solution to these issues. However, the state-of-the-art serverless lifecycle and event-trigger invocation force actors to leverage remote services to manage their state and exchange data, which impacts the performance and incurs additional costs and dependency on third-party services. To address these issues, in this paper, we introduce a novel serverless lifecycle model that allows short-term stateful actors, enabling actors to maintain their state between executions. Additionally, we propose a novel serverless Invocation Model that enables serverless actors to influence the processing of future messages. We present GoldFish, a lightweight WebAssembly short-term stateful serverless actor platform that provides a novel serverless actor lifecycle and invocation model. GoldFish leverages WebAssembly to provide the actors with lightweight sandbox isolation, making them suitable for the Edge-Cloud Continuum, where computational resources are limited. Experimental results show that GoldFish optimizes the data exchange latency by up to 92% and increases the throughput by up to 10x compared to OpenFaaS and Spin.

GoldFish: Serverless Actors with Short-Term Memory State for the Edge-Cloud Continuum

TL;DR

GoldFish introduces a short-term stateful serverless actor model and a SIM invocation model to enable direct, low-latency processing of connected events in the edge-cloud continuum. By embedding actors in WebAssembly and implementing a dedicated lifecycle (LCM) and invocation (SIM) model, it preserves elasticity while avoiding frequent remote state exchanges. The prototype demonstrates substantial latency reductions (up to 92%) and throughput gains (up to 10x) against OpenFaaS and Spin across sequential and parallel workloads. These results indicate significant practical benefits for data-intensive workflows at the edge, with future plans to extend toward 3D edge computing and ML-enabled pipelines.

Abstract

Serverless Computing is a computing paradigm that provides efficient infrastructure management and elastic scalability. Serverless functions scale up or down based on demand, which means that functions are not directly addressable and rely on platform-managed invocation. Serverless stateless nature requires functions to leverage external services, such as object storage and KVS, to exchange data. Serverless actors have emerged as a solution to these issues. However, the state-of-the-art serverless lifecycle and event-trigger invocation force actors to leverage remote services to manage their state and exchange data, which impacts the performance and incurs additional costs and dependency on third-party services. To address these issues, in this paper, we introduce a novel serverless lifecycle model that allows short-term stateful actors, enabling actors to maintain their state between executions. Additionally, we propose a novel serverless Invocation Model that enables serverless actors to influence the processing of future messages. We present GoldFish, a lightweight WebAssembly short-term stateful serverless actor platform that provides a novel serverless actor lifecycle and invocation model. GoldFish leverages WebAssembly to provide the actors with lightweight sandbox isolation, making them suitable for the Edge-Cloud Continuum, where computational resources are limited. Experimental results show that GoldFish optimizes the data exchange latency by up to 92% and increases the throughput by up to 10x compared to OpenFaaS and Spin.

Paper Structure

This paper contains 38 sections, 11 figures.

Figures (11)

  • Figure 1: Simplified Serverless Workflow for Disease Control for Smart Agriculture
  • Figure 2: GoldFish Serverless Lifecycle Model
  • Figure 3: GoldFish Serverless Invocation Model
  • Figure 4: GoldFish Architecture Overview
  • Figure 5: GoldFish Serverless Lifecycle Management
  • ...and 6 more figures