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

A Penny a Function:迈向成本透明的云编程

A Penny a Function: Towards Cost Transparent Cloud Programming

Lukas Böhme, Tom Beckmann, Sebastian Baltes, Robert Hirschfeld

AI总结:

本文提出基于有向图的成本模型,通过静态分析直接从代码推导云应用的货币成本估算,并将成本可视化嵌入代码编辑器,使成本探索成为开发体验的集成部分。

摘要:

在开发云应用时,理解和管理货币成本因素至关重要。然而,影响云应用中计算、存储和网络成本的多种因素,对希望主动管理和最小化成本的开发者构成了挑战。现有的理解成本因素的工具通常与源代码脱节,导致成本来源不透明。此外,现有的云应用成本模型专注于特定因素(如计算资源),并需要人工创建模型。本文提出了基于有向图的成本模型的初步工作,该模型允许使用静态分析直接从代码中推导货币成本估算。利用该成本模型,我们探索了嵌入在代码编辑器中的可视化功能,以在导致成本的代码附近显示成本。这使得成本探索成为开发者体验的集成部分,从而消除了在开发时使用外部工具估算云应用成本的开销。

英文摘要:

Understanding and managing monetary cost factors is crucial when developing cloud applications. However, the diverse range of factors influencing costs for computation, storage, and networking in cloud applications poses a challenge for developers who want to manage and minimize costs proactively. Existing tools for understanding cost factors are often detached from source code, causing opaqueness regarding the origin of costs. Moreover, existing cost models for cloud applications focus on specific factors such as compute resources and necessitate manual effort to create the models. This paper presents initial work toward a cost model based on a directed graph that allows deriving monetary cost estimations directly from code using static analysis. Leveraging the cost model, we explore visualizations embedded in a code editor that display costs close to the code causing them. This makes cost exploration an integrated part of the developer experience, thereby removing the overhead of external tooling for cost estimation of cloud applications at development time.

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

↑