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.
翻译:理解和管理货币成本因素对开发云应用至关重要。然而,云应用中计算、存储和网络等成本影响因素繁多,使得开发者难以主动管理和最小化成本。现有成本因素理解工具通常与源代码脱节,导致成本来源不透明。此外,现有云应用成本模型多聚焦于计算资源等特定因素,且需人工创建模型。本文提出基于有向图的成本模型初步工作,该模型可通过静态分析直接从代码推导货币成本估算。基于此成本模型,我们探索在代码编辑器中嵌入可视化内容,将成本信息展示于对应代码旁。这使得成本探索成为开发者体验的有机组成部分,从而消除开发阶段使用外部工具进行云应用成本估算的额外开销。