ChestBox: Enabling Fast State Sharing for Stateful Serverless Computing With State Functions
This paper presents ChestBox, a novel approach that utilizes <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">state functions</i> to facilitate low-latency state sharing for stateful serverless computing. When an <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">application function</i> needs to share a state, the state function creates a memory space with Linux's shared memory object to store the state. Other application functions can then read the state directly from the shared memory. ChestBox enables fast state sharing that avoids excessive memory overhead without compromising on-demand resource allocation compared to existing solutions. This effectively reduces the energy consumption of serverless computing and promotes sustainable computing. The implementation of ChestBox on Apache OpenWhisk unearths two major implementation challenges, which we address with respective optimization techniques, i.e., state function channel and state swapping. The evaluation of ChestBox with four real-world applications shows that compared with the state-of-the-art approach, it can reduce state-sharing latency by up to 99.71%, while reducing execution costs by 24.59% and storage costs by 99.76%.
Authors
- X.X. Zhang (ORCID: https://orcid.org/0009-0006-9510-6685)
- Song Wu (ORCID: https://orcid.org/0000-0001-8690-127X)
- Hai Jin (ORCID: https://orcid.org/0000-0002-3934-7605)
- Qiang He (ORCID: https://orcid.org/0000-0002-2607-4556)
- Lin Gu (ORCID: https://orcid.org/0000-0002-6525-9334)
Institutions
- Huazhong University of Science and Technology (CN)
Publication Details
- Journal
- IEEE Transactions on Sustainable Computing
- Published
- 2024-11-13
- DOI
- https://doi.org/10.1109/tsusc.2024.3497326
- Primary Topic
- Cloud Computing and Resource Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00