arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.09099cs.PLcs.DC
收藏

迈向函数即服务编排编程语言:示例与应用

Towards a Function-as-a-Service Choreographic Programming Language: Examples and Applications

Giuseppe De Palma, Saverio Giallorenzo, Jacopo Mauro, Matteo Trentin, Gianluigi Zavattaro

AI总结:

本文提出面向无服务器 FaaS 的编排式编程语言 FaaSChal,通过示例说明投影等特性,并利用编排提取函数基础设施关系以自动生成兼顾用户约束与低延迟的策略。

摘要:

Choreographic Programming(CP,编排式编程)是一种语言范式,其中称为编排的软件制品用于指定通信参与者的行为。CP 因其在并发、分布式系统开发中采用构造即正确的方法而闻名。本文介绍了 FaaSChal,这是一种专为无服务器 Function-as-a-Service(FaaS,函数即服务)场景定制的 CP 语言提案。在 FaaS 中,开发者将分布式架构定义为一组无状态函数,并把部署和扩缩容的管理交给无服务器平台。我们通过展示若干相关特性(包括投影)的示例,首次说明了一种面向 FaaS 场景定制的 CP 语言。此外,我们展示了 CP 的一种新颖应用:将编排作为信息源,提取函数之间基础设施关系的信息,从而综合出相关策略,在保证满足用户定义约束的同时,力求最小化函数延迟。

英文摘要:

Choreographic Programming (CP) is a language paradigm whereby software artefacts, called choreographies, specify the behaviour of communicating participants. CP is famous for its correctness-by-construction approach to the development of concurrent, distributed systems. In this paper, we illustrate FaaSChal, a proposal for a CP language tailored for the case of serverless Function-as-a-Service (FaaS). In FaaS, developers define a distributed architecture as a collection of stateless functions, leaving to the serverless platform the management of deployment and scaling. We provide a first account of a CP language tailored for the FaaS case via examples that present some of its relevant features, including projection. In addition, we showcase a novel application of CP. We use the choreography as a source to extract information on the infrastructural relations among functions so that we can synthesise policies that strive to minimise their latency while guaranteeing the respect of user-defined constraints.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑