Lune

SOSP2023顶会

Halfmoon: Log-Optimal Fault-Tolerant Stateful Serverless Computing

Sheng Qi, Xuanzhe Liu, Xin Jin

摘要

Serverless computing separates function execution from state management. Simple retry-based fault tolerance might corrupt the shared state with duplicate updates. Existing solutions employ log-based fault tolerance to achieve exactlyonce semantics, where every single read or write to the external state is associated with a log for deterministic replay. However, logging is not a free lunch, which introduces considerable overhead to stateful serverless applications.

We present Halfmoon, a serverless runtime system for fault-tolerant stateful serverless computing. Our key insight is that it is unnecessary to symmetrically log both reads and writes. Instead, it suffices to log either reads or writes, i.e., asymmetrically. We design two logging protocols that enforce exactly-once semantics while providing log-free reads and writes, which are suitable for read-and writeintensive workloads, respectively. We theoretically prove that the two protocols are log-optimal, i.e., no other protocols can achieve lower logging overhead than our protocols. We provide a criterion for choosing the right protocol for a given workload, and a pauseless switching mechanism to switch protocols for dynamic workloads. We implement a prototype of Halfmoon. Experiments show that Halfmoon achieves 20%-40% lower latency and 1.5-4.0× lower logging overhead than the state-of-the-art solution Boki.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 13 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Styx: Transactional Stateful Functions on Streaming Dataflows 引用了 Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Jolteon: Unleashing the Promise of Serverless for Serverless Workflows 引用了 FaaSFlow: enable efficient workflow execution for function-as-a-service
  • Jolteon: Unleashing the Promise of Serverless for Serverless Workflows 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Faastlane: Accelerating Function-as-a-Service Workflows 引用了 Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • Faastlane: Accelerating Function-as-a-Service Workflows 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Faastlane: Accelerating Function-as-a-Service Workflows 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 FaaSFlow: enable efficient workflow execution for function-as-a-service
  • AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 Faastlane: Accelerating Function-as-a-Service Workflows
  • AlloyStack: A Library Operating System for Serverless Workflow Applications 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Serialization/Deserialization-free State Transfer in Serverless Workflows 引用了 FaaSFlow: enable efficient workflow execution for function-as-a-service
  • Serialization/Deserialization-free State Transfer in Serverless Workflows 引用了 Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservices
  • Serialization/Deserialization-free State Transfer in Serverless Workflows 引用了 Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
  • Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
  • Dirigent: Lightweight Serverless Orchestration 引用了 Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less Booting
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper13

  1. Serialization/Deserialization-free State Transfer in Serverless WorkflowsFangming Lu, Xingda Wei, Zhuobin Huang, Rong Chen 等EuroSys 2024 · 31 次引用
  2. Jolteon: Unleashing the Promise of Serverless for Serverless WorkflowsZili Zhang, Chao Jin, Xin JinNSDI 2024 · 15 次引用
  3. AlloyStack: A Library Operating System for Serverless Workflow ApplicationsJianing You, Kang Chen, Laiping Zhao, Yiming Li 等EuroSys 2025 · 7 次引用
  4. Dirigent: Lightweight Serverless OrchestrationLazar Cvetkovic, François Costa, Mihajlo Djokic, Michal Friedman 等SOSP 2024 · 6 次引用
  5. Styx: Transactional Stateful Functions on Streaming DataflowsKyriakos Psarakis, George Christodoulou, Georgios Siachamis, Marios Fragkoulis 等SIGMOD 2025 · 3 次引用

它引用的 Paper36

  1. Faasm: Lightweight Isolation for Efficient Stateful Serverless ComputingSimon Shillaker, Peter R. PietzuchUSENIX ATC 2020 · 382 次引用
  2. Catalyzer: Sub-millisecond Startup for Serverless Computing with Initialization-less BootingDong Du, Tianyi Yu, Yubin Xia, Binyu Zang 等ASPLOS 2020 · 280 次引用
  3. Nightcore: efficient and scalable serverless computing for latency-sensitive, interactive microservicesZhipeng Jia, Emmett WitchelASPLOS 2021 · 218 次引用
  4. Faastlane: Accelerating Function-as-a-Service WorkflowsSwaroop Kotni, Ajay Nayak, Vinod Ganapathy, Arkaprava BasuUSENIX ATC 2021 · 142 次引用
  5. FaaSFlow: enable efficient workflow execution for function-as-a-serviceZijun Li, Yushi Liu, Linsong Guo, Quan Chen 等ASPLOS 2022 · 95 次引用

相关 Paper

  1. Boki: Stateful Serverless Computing with Shared LogsZhipeng Jia, Emmett WitchelSOSP 2021 · 81 次引用
  2. FlexLog: A Shared Log for Stateful Serverless ComputingDimitra Giantsidi, Emmanouil Giortamis, Nathaniel Tornow, Florin Dinu 等HPDC 2023 · 9 次引用
  3. A fault-tolerance shim for serverless computingVikram Sreekanti, Chenggang Wu, Saurav Chhatrapati, Joseph E. Gonzalez 等EuroSys 2020 · 58 次引用
  4. Fault-tolerant and transactional stateful serverless workflowsHaoran Zhang, Adney Cardoza, Peter Baile Chen, Sebastian Angel 等OSDI 2020 · 20 次引用
  5. Automated Verification of Idempotence for Stateful Serverless ApplicationsHaoran Ding, Zhaoguo Wang, Zhuohao Shen, Rong Chen 等OSDI 2023 · 16 次引用
黄昏的海面,两侧是细线勾勒的悬崖