arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.21793cs.DCcs.SE
收藏

Histrio:一个无服务器 Actor 系统

Histrio: a Serverless Actor System

Giorgio Natale Buttiglieri, Luca De Martini, Alessandro Margara

AI总结:

本文提出基于 actor 模型的无服务器系统 Histrio,通过接管状态、存储与并发管理并保证恰好一次处理,简化 FaaS 有状态应用开发且具备可扩展性。

摘要:

近年来,无服务器范式已被广泛用于开发云应用,因为它支持构建可扩展的解决方案,同时将基础设施管理和资源供应等运维事务委托给无服务器提供商。尽管带来了无可争议的优势,无服务器模型仍要求改变编程范式,这可能增加软件开发的复杂性。特别是在 Function-as-a-Service(FaaS,函数即服务)范式中,函数本质上是无状态的。因此,开发人员承担着直接与外部存储服务交互以及处理跨函数调用的并发性和状态一致性的负担。这导致用于解决他们所面对的实际业务问题的时间减少。基于这些前提,本文提出了 Histrio,这是一种简化 FaaS 范式中复杂有状态应用开发的编程模型和执行环境。Histrio 以 actor 编程模型为基础,将状态管理、数据库交互和并发处理等关注点从开发人员那里剥离出来。它通过一些特性丰富了 actor 模型,这些特性简化并优化了与外部存储的交互。它保证 exactly-once-processing(恰好一次处理)一致性,这意味着应用程序的行为始终如同任何与外部客户端的交互都被处理一次且仅一次,从而屏蔽故障。为评估系统所提供保证节省的开发时间以及 Histrio 在典型应用中的适用性,研究将 Histrio 与经典 FaaS 实现进行了比较。在所评估的场景中,Histrio 通过显著减少处理运维关注点所需的代码量简化了实现。它被证明具有可扩展性,并提供了在性能和执行成本之间进行权衡的配置机制。

英文摘要:

In recent years, the serverless paradigm has been widely adopted to develop cloud applications, as it enables building scalable solutions while delegating operational concerns such as infrastructure management and resource provisioning to the serverless provider. Despite bringing undisputed advantages, the serverless model requires a change in programming paradigm that may add complexity in software development. In particular, in the Function-as-a-Service (FaaS) paradigm, functions are inherently stateless. As a consequence, developers carry the burden of directly interacting with external storage services and handling concurrency and state consistency across function invocations. This results in less time spent on solving the actual business problems they face. Moving from these premises, this paper proposes Histrio, a programming model and execution environment that simplifies the development of complex stateful applications in the FaaS paradigm. Histrio grounds on the actor programming model, and lifts concerns such as state management, database interaction, and concurrency handling from developers. It enriches the actor model with features that simplify and optimize the interaction with external storage. It guarantees exactly-once-processing consistency, meaning that the application always behaves as if any interaction with external clients was processed once and only once, masking failures. Histrio has been compared with a classical FaaS implementation to evaluate both the development time saved due to the guarantees the system offers and the applicability of Histrio in typical applications. In the evaluated scenarios, Histrio simplified the implementation by significantly removing the amount of code needed to handle operational concerns. It proves to be scalable and it provides configuration mechanisms to trade performance and execution costs.

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

↑