Algebraic reasoning for timeliness-guided system design

IF 1.2 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS
Seyed Hossein Haeri , Peter Van Roy , Heinrich Apfelmus , Peter W. Thompson , Neil J. Davies , Magne Haveraaen , Mikhail Barash , Kevin Hammond , James Chapman , Artjoms Šinkarovs
{"title":"Algebraic reasoning for timeliness-guided system design","authors":"Seyed Hossein Haeri ,&nbsp;Peter Van Roy ,&nbsp;Heinrich Apfelmus ,&nbsp;Peter W. Thompson ,&nbsp;Neil J. Davies ,&nbsp;Magne Haveraaen ,&nbsp;Mikhail Barash ,&nbsp;Kevin Hammond ,&nbsp;James Chapman ,&nbsp;Artjoms Šinkarovs","doi":"10.1016/j.jlamp.2025.101093","DOIUrl":null,"url":null,"abstract":"<div><div>Designing distributed systems to have predictable performance under all loads is difficult because of resource exhaustion, nonlinearity, and stochastic behaviour. Timeliness, defined as delivering results (sufficiently often) within a specified delay distribution, is a central aspect of predictable performance. In this paper, we consider the ΔQ Systems Development paradigm (ΔQSD, developed by <span><span>PNSol</span><svg><path></path></svg></span>), which computes timeliness by modelling systems observationally using so-called <em>outcome expressions</em>. An outcome expression is a compositional definition of a system's observed behaviour that shows the causal connections between its basic operations. Given the ΔQSD operations, we use outcome expressions to compute the stochastic behaviour of the whole system including its timeliness.</div><div>This paper defines and proves algebraic equivalences of outcome expressions with respect to timeliness. We prove the correctness of previously-known equivalences. We also introduce new equivalences and prove their correctness for outcome expressions containing probabilistic choice, failure, synchronisation (first-to-finish and last-to-finish), and sequential composition operators. We show how to incorporate failure as a first-class citizen in outcome expressions by developing the relevant mathematics based on the use of improper random variables. The paper shows the practical usefulness of algebraic equivalences by studying the design of a memory system containing a local cache, a networked read with timeout, and the ability to retry. We compute the delay and failure behaviour of several versions of this system, using the equivalences to simplify computations. This work is part of an ongoing project to disseminate and build tool support for ΔQSD, to make it available to the wider community of system designers.</div></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"148 ","pages":"Article 101093"},"PeriodicalIF":1.2000,"publicationDate":"2025-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Logical and Algebraic Methods in Programming","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2352220825000598","RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 0

Abstract

Designing distributed systems to have predictable performance under all loads is difficult because of resource exhaustion, nonlinearity, and stochastic behaviour. Timeliness, defined as delivering results (sufficiently often) within a specified delay distribution, is a central aspect of predictable performance. In this paper, we consider the ΔQ Systems Development paradigm (ΔQSD, developed by PNSol), which computes timeliness by modelling systems observationally using so-called outcome expressions. An outcome expression is a compositional definition of a system's observed behaviour that shows the causal connections between its basic operations. Given the ΔQSD operations, we use outcome expressions to compute the stochastic behaviour of the whole system including its timeliness.
This paper defines and proves algebraic equivalences of outcome expressions with respect to timeliness. We prove the correctness of previously-known equivalences. We also introduce new equivalences and prove their correctness for outcome expressions containing probabilistic choice, failure, synchronisation (first-to-finish and last-to-finish), and sequential composition operators. We show how to incorporate failure as a first-class citizen in outcome expressions by developing the relevant mathematics based on the use of improper random variables. The paper shows the practical usefulness of algebraic equivalences by studying the design of a memory system containing a local cache, a networked read with timeout, and the ability to retry. We compute the delay and failure behaviour of several versions of this system, using the equivalences to simplify computations. This work is part of an ongoing project to disseminate and build tool support for ΔQSD, to make it available to the wider community of system designers.
时效性导向系统设计的代数推理
由于资源耗尽、非线性和随机行为,设计分布式系统在所有负载下都具有可预测的性能是困难的。时效性,定义为在指定的延迟分布内(足够频繁地)交付结果,是可预测性能的一个核心方面。在本文中,我们考虑ΔQ系统开发范式(ΔQSD,由PNSol开发),它通过使用所谓的结果表达式对系统进行观测建模来计算时效性。结果表达式是对系统所观察到的行为的组合定义,它显示了系统基本操作之间的因果关系。给定ΔQSD操作,我们使用结果表达式来计算整个系统的随机行为,包括其时效性。本文定义并证明了结果表达式在时效性方面的代数等价。我们证明了先前已知的等价的正确性。我们还为包含概率选择、失败、同步(第一个完成和最后一个完成)和顺序组合操作符的结果表达式引入了新的等价并证明了它们的正确性。我们展示了如何通过开发基于使用不当随机变量的相关数学,将失败作为一等公民纳入结果表达式。本文通过研究一个包含本地缓存、带超时的网络读取和重试能力的存储系统的设计,展示了代数等价的实际用途。我们计算了该系统的几个版本的延迟和失效行为,使用等价来简化计算。这项工作是一个正在进行的项目的一部分,该项目旨在传播和构建对ΔQSD的工具支持,使其可用于更广泛的系统设计人员社区。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Logical and Algebraic Methods in Programming
Journal of Logical and Algebraic Methods in Programming COMPUTER SCIENCE, THEORY & METHODS-LOGIC
CiteScore
2.60
自引率
22.20%
发文量
48
期刊介绍: The Journal of Logical and Algebraic Methods in Programming is an international journal whose aim is to publish high quality, original research papers, survey and review articles, tutorial expositions, and historical studies in the areas of logical and algebraic methods and techniques for guaranteeing correctness and performability of programs and in general of computing systems. All aspects will be covered, especially theory and foundations, implementation issues, and applications involving novel ideas.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信