Fearless Asynchronous Communications with Timed Multiparty Session Protocols
Ping Hou, Nicolas Lagaillardie, Nobuko Yoshida

TL;DR
This paper introduces a formal framework combining affinity, time constraints, and failure handling in multiparty session types to ensure deadlock-free, safe, and reliable asynchronous communication in distributed systems, supported by a Rust toolchain.
Contribution
It presents the first formal integration of timed, affinity, and failure mechanisms in multiparty session types, with a practical Rust implementation for safe asynchronous protocols.
Findings
Deadlock-free, communication safe guarantees for timed asynchronous protocols
Negligible overhead of timed protocols compared to untimed implementations
Successful application to real-world distributed systems and IoT use cases
Abstract
Session types using affinity and exception handling mechanisms have been developed to ensure the communication safety of protocols implemented in concurrent and distributed programming languages. Nevertheless, current affine session types are inadequate for specifying real-world asynchronous protocols, as they are usually imposed by time constraints which enable timeout exceptions to prevent indefinite blocking while awaiting valid messages. This paper proposes the first formal integration of affinity, time constraints, timeouts, and time-failure handling based on multiparty session types for supporting reliability in asynchronous distributed systems. With this theory, we statically guarantee that asynchronous timed communication is deadlock-free, communication safe, while being fearless -- never hindered by timeout errors or abrupt terminations. To implement our theory, we introduce…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
