AtomicFaaS: Offloading Side-Effect Compensation to the Serverless Platform
Jonas Heisterberg, Sebastian Koch, Trever Schirmer, David Bermbach
Key points
From the paper's conclusion- Compared with a manually implemented saga, AtomicFaaS eliminates compensation code and leaves no compensatable effects after any tested failure, while adding ~1 ms per intercepted call.
Abstract
Function-as-a-Service (FaaS) simplifies distributed application development by offloading operational concerns to the platform, but developers remain responsible for recovering from failures. Retries require idempotent functions, which means that developers have to write complex, error-prone code that undoes or skips the already completed operations of a failed function. To address this, we propose AtomicFaaS, a platform extension that provides semantic atomicity for the external side effects of a function invocation, whether the function fails or its instance crashes, without developer-written compensation code. AtomicFaaS intercepts outbound calls and records their effects in a fault-tolerant log, from which the platform compensates leaked effects outside the failed instance. Compared with a manually implemented saga, AtomicFaaS eliminates compensation code and leaves no compensatable effects after any tested failure, while adding ~1 ms per intercepted call. Under load, it lowers the sustainable throughput of CPU-bound functions, while its latency overhead becomes negligible once calls to external services dominate the invocation time.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Characterizing Serverless Workloads: A Large-Scale Analysis of Function-as-a-Service PlatformsarXiv · 2026
- Sustainability-Aware Serverless Orchestration for Multi-Cloud Enterprise Systems: A Reference Architecture and Implementation FrameworkEPJ Web of Conferences · 2026
- Characterizing FaaS Workflows on Public Clouds: The Good, the Bad and the UglyIEEE Transactions on Parallel and Distributed Systems · 2026
- AdaFuse: Adaptive Function Fusion for Dynamic Serverless WorkflowsACM Transactions on Architecture and Code Optimization · 2026
- Ermes: a Stateful Serverless Platform for the Edge-to-Cloud ContinuumarXiv · 2026
- HyFaaS: Accelerating Serverless Workflows by Unleashing Hybrid Resource ElasticityIEEE Transactions on Parallel and Distributed Systems · 2025