kth.sePublications KTH
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Programming Models for Failure-Transparent Distributed Systems
KTH, School of Electrical Engineering and Computer Science (EECS), Computer Science, Theoretical Computer Science, TCS.ORCID iD: 0000-0002-7119-5234
2025 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

Failure-transparent programming models abstract from failures by fully masking them from the programmer. They are widely used for programming distributed systems, as failures otherwise are considered a core difficulty. The most widely used of its kind for processing data is stateful dataflow streaming, a model restricted to static, directed, acyclic graphs of stateful stream processors. However, its restrictions limit the applicability of the model, as it lacks support for compositional patterns and replicated data types, making it difficult to express certain applications. Moreover, there is a lack of formal foundations and proofs of failure transparency.

This thesis contributes a semantics-agnostic definition of failure transparency, and two proofs of failure transparency, one of which is for a model of a stateful dataflow streaming system. It additionally contributes two novel programming models based on stateful dataflow streaming. The first provides extensions for compositional patterns, allowing it to express use cases such as a shopping cart. The second provides extensions for windowed conflict-free replicated data types, implemented in a low-latency programming system for global aggregations.

This thesis demonstrates the utility of failure-transparent programming models for distributed systems by contributions to its formal foundations and by making it applicable to a wider range of applications.

Abstract [sv]

Feltransparenta programmeringsmodeller abstraherar från fel genom att helt dölja dem för programmeraren. De används ofta för programmering av distribuerade system, eftersom fel annars anses vara ett centralt problem. Den mest använda modellen för databehandling är stateful dataflow streaming, en modell som är begränsad till statiska, riktade, acykliska grafer av stateful stream-processorer. Dess begränsningar begränsar dock modellens tillämpbarhet, eftersom den saknar stöd för kompositionella mönster och replikerade datatyper, vilket gör det svårt att uttrycka vissa applikationer. Dessutom saknas formella grunder och bevis för feltransparens.

Denna avhandling bidrar med en semantiksagnostisk definition av feltransparens och två bevis för feltransparens, varav ett är för en modell av ett stateful dataflow streaming system. Den bidrar dessutom med två nya programmeringsmodeller baserade på stateful dataflow streaming. Den första tillhandahåller tillägg för kompositionella mönster, vilket gör det möjligt att uttrycka användningsfall som till exempel en kundvagn. Den andra tillhandahåller tillägg för fönsterbaserade konfliktfria replikerade datatyper, implementerade i ett programmeringssystem med låg latens för globala aggregeringar.

Denna avhandling demonstrerar nyttan av feltransparenta programmeringsmodeller för distribuerade system genom bidrag till dess formella grunder och genom att göra den tillämpbar på ett bredare spektrum av applikationer.

Place, publisher, year, edition, pages
Stockholm, Sweden: KTH Royal Institute of Technology, 2025. , p. xiii, 70
Series
TRITA-EECS-AVL ; 2025:102
Keywords [en]
Failure transparency, Programming models, Stateful dataflow streaming, Operational semantics, Distributed systems
Keywords [sv]
Feltransparens, Programmeringsmodeller, Stateful dataflow streaming, Operationell semantik, Distribuerade system
National Category
Computer Sciences Networked, Parallel and Distributed Computing
Identifiers
URN: urn:nbn:se:kth:diva-372645ISBN: 978-91-8106-456-8 (print)OAI: oai:DiVA.org:kth-372645DiVA, id: diva2:2013047
Public defence
2025-12-11, https://kth-se.zoom.us/j/65545597811, Kollegiesalen, Brinellvägen 8, Stockholm, 09:00 (English)
Opponent
Supervisors
Note

QC 20251112

Available from: 2025-11-12 Created: 2025-11-11 Last updated: 2025-11-24Bibliographically approved
List of papers
1. Portals: An Extension of Dataflow Streaming for Stateful Serverless
Open this publication in new window or tab >>Portals: An Extension of Dataflow Streaming for Stateful Serverless
2022 (English)In: Onward! 2022: Proceedings of the 2022 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, New York, NY, USA: Association for Computing Machinery (ACM) , 2022, p. 153-171Conference paper, Published paper (Refereed)
Abstract [en]

Portals is a serverless, distributed programming model that blends the exactly-once processing guarantees of stateful dataflow streaming frameworks with the message-driven compositionality of actor frameworks. Decentralized applications in Portals can be built dynamically, scale on demand, and always satisfy strict atomic processing guarantees that are natively embedded in the framework’s principal elements of computation, known as atomic streams. In this paper, we describe the capabilities of Portals and demonstrate its use in supporting several popular existing distributed programming paradigms and use-cases. We further introduce all programming model invariants and the corresponding system methods used to satisfy them.

Place, publisher, year, edition, pages
New York, NY, USA: Association for Computing Machinery (ACM), 2022
Keywords
dataflow streaming, stateful serverless, exactly-once processing
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-327965 (URN)10.1145/3563835.3567664 (DOI)001349560300011 ()2-s2.0-85146994162 (Scopus ID)
Conference
Onward! 2022: Proceedings of the 2022 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, Auckland, New Zealand, December 8-10, 2022
Note

QC 20251021

Available from: 2023-06-01 Created: 2023-06-01 Last updated: 2025-11-11Bibliographically approved
2. Portals: A Showcase of Multi-Dataflow Stateful Serverless
Open this publication in new window or tab >>Portals: A Showcase of Multi-Dataflow Stateful Serverless
2023 (English)In: Proceedings 49th International Conference on Very Large Data Bases, VLDB 2023, Association for Computing Machinery (ACM) , 2023, p. 4054-4057Conference paper, Published paper (Refereed)
Abstract [en]

Serverless applications spanning the cloud and edge require flexible programming frameworks for expressing compositions across the different levels of deployment. Another critical aspect for applications with state is failure resilience beyond the scope of a single dataflow graph that is the current standard in data streaming systems. This paper presents Portals, an interactive, stateful dataflow composition framework with strong end-to-end guarantees. Portals enables event-driven, resilient applications that span across dataflow graphs and serverless deployments. The demonstration exhibits three scenarios in our multi-dataflow streaming-based system: dynamically composing a stateful serverless application; an interactive cloud and edge serverless application; and a Portals browser playground. 

Place, publisher, year, edition, pages
Association for Computing Machinery (ACM), 2023
National Category
Computer Sciences Software Engineering
Identifiers
urn:nbn:se:kth:diva-339286 (URN)10.14778/3611540.3611619 (DOI)001067701000080 ()2-s2.0-85174497385 (Scopus ID)
Conference
49th International Conference on Very Large Data Bases, VLDB 2023, Vancouver, Canada, Aug 28 2023 - Sep 1 2023
Note

QC 20231106

Available from: 2023-11-06 Created: 2023-11-06 Last updated: 2025-11-19Bibliographically approved
3. A Survey of Actor-Like Programming Models for Serverless Computing
Open this publication in new window or tab >>A Survey of Actor-Like Programming Models for Serverless Computing
2024 (English)In: Active Object Languages: Current Research Trends / [ed] Frank de Boer, Ferruccio Damiani, Reiner Hähnle, Einar Broch Johnsen, Eduard Kamburjan, Springer Nature , 2024, p. 123-146Chapter in book (Refereed)
Abstract [en]

Serverless computing promises to significantly simplify cloud computing by providing Functions-as-a-Service where invocations of functions, triggered by events, are automatically scheduled for execution on compute nodes. Notably, the serverless computing model does not require the manual provisioning of virtual machines; instead, FaaS enables load-based billing and auto-scaling according to the workload, reducing costs and making scheduling more efficient. While early serverless programming models only supported stateless functions and severely restricted program composition, recently proposed systems offer greater flexibility by adopting ideas from actor and dataflow programming. This paper presents a survey of actor-like programming abstractions for stateful serverless computing, and provides a characterization of their properties and highlights their origin. 

Place, publisher, year, edition, pages
Springer Nature, 2024
Series
Lecture Notes in Computer Science, ISSN 0302-9743, E-ISSN 1611-3349 ; 14360
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-366418 (URN)10.1007/978-3-031-51060-1_5 (DOI)001215137600006 ()2-s2.0-85184287969 (Scopus ID)
Funder
Swedish Foundation for Strategic Research, BD15-0006EU, Horizon Europe, 101092711
Note

Part of ISBN 9783031510595, 9783031510601

QC 20250922

Available from: 2025-07-07 Created: 2025-07-07 Last updated: 2025-11-11Bibliographically approved
4. Failure Transparency in Stateful Dataflow Systems
Open this publication in new window or tab >>Failure Transparency in Stateful Dataflow Systems
2024 (English)In: 38th European Conference on Object-Oriented Programming (ECOOP 2024) / [ed] Aldrich J.; Salvaneschi G., Schloss Dagstuhl - Leibniz-Zentrum für Informatik , 2024, Vol. 313, p. 42:1-42:31, article id 37Conference paper, Published paper (Refereed)
Abstract [en]

Failure transparency enables users to reason about distributed systems at a higher level of abstraction, where complex failure-handling logic is hidden. This is especially true for stateful dataflow systems, which are the backbone of many cloud applications. In particular, this paper focuses on proving failure transparency in Apache Flink, a popular stateful dataflow system. Even though failure transparency is a critical aspect of Apache Flink, to date it has not been formally proven. Showing that the failure transparency mechanism is correct, however, is challenging due to the complexity of the mechanism itself. Nevertheless, this complexity can be effectively hidden behind a failure transparent programming interface. To show that Apache Flink is failure transparent, we model it in small-step operational semantics. Next, we provide a novel definition of failure transparency based on observational explainability, a concept which relates executions according to their observations. Finally, we provide a formal proof of failure transparency for the implementation model; i.e., we prove that the failure-free model correctly abstracts from the failure-related details of the implementation model. We also show liveness of the implementation model under a fair execution assumption. These results are a first step towards a verified stack for stateful dataflow systems.

Place, publisher, year, edition, pages
Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024
Series
Leibniz International Proceedings in Informatics (LIPIcs), ISSN 1868-8969 ; 313
Keywords
checkpoint recovery, Failure transparency, operational semantics, stateful dataflow
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-366419 (URN)10.4230/LIPIcs.ECOOP.2024.42 (DOI)001533999700042 ()2-s2.0-85204981346 (Scopus ID)
Conference
38th European Conference on Object-Oriented Programming (ECOOP 2024), Vienna, Austria, September 16-20, 2024
Note

Part of ISBN 9783959773416

QC 20250923

Available from: 2025-07-07 Created: 2025-07-07 Last updated: 2025-11-11Bibliographically approved
5. Failure-Transparent Actors
Open this publication in new window or tab >>Failure-Transparent Actors
2026 (English)In: Concurrent Programming, Open Systems and Formal Methods, Springer Nature , 2026, Vol. LNCS 16120, p. 81-113Chapter in book (Refereed)
Abstract [en]

Failures in a distributed system are not only possible but expected and notoriously difficult to handle. For this reason, it is imperative to provide system-level means for building failure-transparent services, i.e., services which transparently recover from failures, effectively masking them. Towards this, this paper presents a syntax and semantics for compositionally failure-transparent actors. It is structured around three kinds of failure-transparent compositions: composition within a system; between systems; and application-level composition. For the former two, we prove that the semantics is failure transparent by simulation using prophecy variables. For the latter, we discuss its implementation; additionally, we discuss the necessity for leaking system-level failures to the application-level. The presented material provides low-level building blocks for failure-transparent services, thus greatly simplifying their construction.

Place, publisher, year, edition, pages
Springer Nature, 2026
Series
Lecture Notes in Computer Science ; 16120
Keywords
Actor model, Failure transparency, Operational semantics, Service composition
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-372178 (URN)10.1007/978-3-032-05291-9_4 (DOI)2-s2.0-105017373606 (Scopus ID)
Note

Part of ISBN 9783032052902, 9783032052919

QC 20251028

Available from: 2025-10-28 Created: 2025-10-28 Last updated: 2025-11-19Bibliographically approved
6. Holon Streaming: Global Aggregations with Windowed CRDTs
Open this publication in new window or tab >>Holon Streaming: Global Aggregations with Windowed CRDTs
Show others...
2025 (English)Manuscript (preprint) (Other academic)
Abstract [en]

Scaling global aggregations is a challenge for exactly-once stream processing systems. Current systems implement these either by computing the aggregation in a single task instance, or by static aggregation trees, which limits scalability and may become a bottleneck. Moreover, the end-to-end latency is determined by the slowest path in the tree, and failures and reconfiguration cause large latency spikes due to the centralized coordination. Towards these issues, we present Holon Streaming, an exactly-once stream processing system for global aggregations. Its deterministic programming model uses windowed conflict-free replicated data types (Windowed CRDTs), a novel abstraction for shared replicated state. Windowed CRDTs make computing global aggregations scalable. Furthermore, their guarantees such as determinism and convergence enable the design of efficient failure recovery algorithms by decentralized coordination. Our evaluation shows a 5x lower latency and 2x higher throughput than an existing stream processing system on global aggregation workloads, with an 11x latency reduction under failure scenarios. The paper demonstrates the effectiveness of decentralized coordination with determinism, and the utility of Windowed CRDTs for global aggregations. 

National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-372428 (URN)10.48550/arXiv.2510.25757 (DOI)
Note

QC 20251112

Available from: 2025-11-11 Created: 2025-11-11 Last updated: 2025-11-19Bibliographically approved

Open Access in DiVA

fulltext(1123 kB)558 downloads
File information
File name FULLTEXT01.pdfFile size 1123 kBChecksum SHA-512
2f2aa996d2f93dec7671e3480e7ec25ce0459eaa9d36a1b22b243d9aff6a1d714eed6e870e3c296d91f1238d26e41140037510a189910af82b659726086cd873
Type fulltextMimetype application/pdf

Authority records

Spenger, Jonas

Search in DiVA

By author/editor
Spenger, Jonas
By organisation
Theoretical Computer Science, TCS
Computer SciencesNetworked, Parallel and Distributed Computing

Search outside of DiVA

GoogleGoogle Scholar
Total: 561 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

isbn
urn-nbn

Altmetric score

isbn
urn-nbn
Total: 3080 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf