Print Email Facebook Twitter Distributed transactions on serverless stateful functions Title Distributed transactions on serverless stateful functions Author de Heus, Martijn (Student TU Delft) Psarakis, K. (TU Delft Web Information Systems) Fragkoulis, M. (TU Delft Web Information Systems) Katsifodimos, A (TU Delft Web Information Systems) Contributor Margara, Alessandro (editor) Della Valle, Emanuele (editor) Date 2021 Abstract Serverless computing is currently the fastest-growing cloud services segment. The most prominent serverless offering is Function-as-a-Service (FaaS), where users write functions and the cloud automates deployment, maintenance, and scalability. Although FaaS is a good fit for executing stateless functions, it does not adequately support stateful constructs like microservices and scalable, low-latency cloud applications, mainly because it lacks proper state management support and the ability to perform function-to-function calls. Most importantly, executing transactions across stateful functions remains an open problem. In this paper, we introduce a programming model and implementation for transaction orchestration of stateful serverless functions. Our programming model supports serializable distributed transactions with two-phase commit, as well as relaxed transactional guarantees with Sagas. We design and implement our programming model on Apache Flink StateFun. We choose to build our solution on top of StateFun in order to leverage Flink's exactly-once processing and state management guarantees. We base our evaluation on the YCSB benchmark, which we extended with transactional operations and adapted for the SFaaS programming model. Our experiments show that our transactional orchestration adds 10% overhead to the original system and that Sagas can achieve up to 34% more transactions per second than two-phase commit transactions at a sub-200ms latency. Subject FaaSsagasserverlessstreaming dataflowtransactionstwo-phase commit To reference this document use: http://resolver.tudelft.nl/uuid:fc1240bb-84e7-461c-99bb-fccb41135535 DOI https://doi.org/10.1145/3465480.3466920 Publisher Association for Computing Machinery (ACM), New York ISBN 978-1-4503-8555-8 Source DEBS 2021: Proceedings of the 15th ACM International Conference on Distributed and Event-Based Systems Event 15th ACM International Conference on Distributed and Event-Based Systems, DEBS 2021, 2021-06-28 → 2021-07-02, Virtual, Online, Italy Part of collection Institutional Repository Document type conference paper Rights © 2021 Martijn de Heus, K. Psarakis, M. Fragkoulis, A Katsifodimos Files PDF 3465480.3466920.pdf 1.94 MB Close viewer /islandora/object/uuid:fc1240bb-84e7-461c-99bb-fccb41135535/datastream/OBJ/view