Leonardo Rebouças de Carvalho, Geraldo Pereira Rocha Filho, Aleteia Araujo
{"title":"From Source Code to Cost: A Multilingual, Cost-Aware Runtime Prediction Framework for Multi-Cloud FaaS","authors":"Leonardo Rebouças de Carvalho, Geraldo Pereira Rocha Filho, Aleteia Araujo","doi":"10.1002/cpe.70928","DOIUrl":null,"url":null,"abstract":"<p>Predicting the runtime and cost of Function-as-a-Service (FaaS) applications remains challenging in multi-cloud environments due to variations in code complexity, workload characteristics, and provider-specific behaviors. This paper presents an extended version of the Orama Framework that advances runtime prediction toward a multilingual and cost-aware approach. The framework incorporates a multilingual Halstead metric extractor for language-agnostic static analysis and enhances the predictor to estimate execution costs by combining runtime forecasts with cloud pricing models across AWS Lambda, Google Cloud Functions, Azure Functions, and Alibaba Function Compute. To assess robustness and generalization, the data set is expanded with a scientific workload based on genetic sequence alignment, introducing input-sensitive execution patterns. The extended data set integrates static code metrics, workload scale, infrastructure metadata, and empirical multi-cloud execution traces. Neural network models (Dense, LSTM, and BLSTM) are retrained and evaluated using standard regression metrics and cost estimation. Results indicate that the enhanced BLSTM model maintains high predictive precision across heterogeneous workloads and providers, while enabling cross-cloud cost estimation directly from source code. The extended framework provides a unified approach for performance and cost-aware prediction in serverless computing environments.</p>","PeriodicalId":55214,"journal":{"name":"Concurrency and Computation-Practice & Experience","volume":"38 17","pages":""},"PeriodicalIF":2.2000,"publicationDate":"2026-08-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1002/cpe.70928","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Concurrency and Computation-Practice & Experience","FirstCategoryId":"94","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/cpe.70928","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
Predicting the runtime and cost of Function-as-a-Service (FaaS) applications remains challenging in multi-cloud environments due to variations in code complexity, workload characteristics, and provider-specific behaviors. This paper presents an extended version of the Orama Framework that advances runtime prediction toward a multilingual and cost-aware approach. The framework incorporates a multilingual Halstead metric extractor for language-agnostic static analysis and enhances the predictor to estimate execution costs by combining runtime forecasts with cloud pricing models across AWS Lambda, Google Cloud Functions, Azure Functions, and Alibaba Function Compute. To assess robustness and generalization, the data set is expanded with a scientific workload based on genetic sequence alignment, introducing input-sensitive execution patterns. The extended data set integrates static code metrics, workload scale, infrastructure metadata, and empirical multi-cloud execution traces. Neural network models (Dense, LSTM, and BLSTM) are retrained and evaluated using standard regression metrics and cost estimation. Results indicate that the enhanced BLSTM model maintains high predictive precision across heterogeneous workloads and providers, while enabling cross-cloud cost estimation directly from source code. The extended framework provides a unified approach for performance and cost-aware prediction in serverless computing environments.
期刊介绍:
Concurrency and Computation: Practice and Experience (CCPE) publishes high-quality, original research papers, and authoritative research review papers, in the overlapping fields of:
Parallel and distributed computing;
High-performance computing;
Computational and data science;
Artificial intelligence and machine learning;
Big data applications, algorithms, and systems;
Network science;
Ontologies and semantics;
Security and privacy;
Cloud/edge/fog computing;
Green computing; and
Quantum computing.