SERVERLESS FUNCTIONS, VIRTUAL MACHINES, OR CONTAINERS FOR INTERMITTENTLY USED INTERNAL TOOLS: PERFORMANCE, COST, AND OPERATIONAL RESPONSIBILITY IN AN AWS CASE STUDY

Abstract

Choosing a hosting architecture for intermittently used internal operational tools involves trade-offs among performance, cost, and operational responsibility. This study evaluates these trade-offs among Function as a Service (FaaS), Infrastructure as a Service (IaaS), and Container as a Service (CaaS), using as a case a tool for monitoring and recovering AWS Database Migration Service (DMS) tasks. AWS Lambda and Amazon EC2 were compared when executing a core routine comprising one batch read and 42 updates in Amazon DynamoDB; Amazon EKS was assessed through documentary analysis. Three exploratory rounds showed that correcting the SDK reinstantiation reduced Lambda’s mean time by 83.4%. A confirmatory round, using an identical artifact, randomized interleaved trials (N = 60 per condition), and three memory configurations, showed that the difference depends on Lambda’s memory: with 128 MB, its mean time was 5.81 times that of an EC2 t3.micro instance (1.4956 s vs. 0.2572 s); with 512 MB, 1.35 times; with 1,769 MB, no statistically significant difference was found. The measurement covers only the instrumented core, excluding initialization, API Gateway, and client-side networking. In the cost model, Lambda showed low incremental cost under intermittent use, whereas EC2 and EKS retained provisioned-capacity costs. The recovery analysis indicated a potential reduction in human actions without constituting an experimental measurement of Mean Time to Recovery (MTTR). The results indicate that the suitability of the alternatives depends on the usage profile, resource configuration, and operational requirements, with no universally superior paradigm.

Author Biographies

Kaiky Henrique Vieira Barbosa de Moura, Federal Institute of São Paulo

Undergraduate student in Systems Analysis and Development Technology at the Federal Institute of Education, Science and Technology of São Paulo (IFSP), Jacareí campus, and software engineer.

Ana Paula Abrantes de Castro e Shiguemori, Federal Institute of São Paulo

Ph.D. in Applied Computing from the National Institute for Space Research (INPE) and professor of Computing at the Federal Institute of Education, Science and Technology of São Paulo (IFSP).

References

ABEDI, Ali; BRECHT, Tim. Conducting repeatable experiments in highly variable cloud computing environments. In: ACM/SPEC INTERNATIONAL CONFERENCE ON PERFORMANCE ENGINEERING, 8., 2017, L’Aquila. Proceedings […]. New York: ACM, 2017. p. 287–292. DOI: https://doi.org/10.1145/3030207.3030229

ADZIC, Gojko; CHATLEY, Robert. Serverless computing: economic and architectural impact. In: JOINT MEETING ON FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE), 11., 2017, Paderborn. Proceedings […]. New York: ACM, 2017. p. 884–889. DOI: https://doi.org/10.1145/3106237.3117767

ALLEN, Christopher; LI, Xiaozhou; ABDELFATTAH, Amr S.; CERNY, Tomas; TAIBI, Davide. Comparing cost and performance of microservices and serverless in AWS: EC2 vs Lambda. In: HAN, H.; BAKER, E. (ed.). Next Generation Data Science: Second Southwest Data Science Conference, SDSC 2023, Waco, TX, USA, March 24–25, 2023, Revised Selected Papers. Cham: Springer, 2024. (Communications in Computer and Information Science, v. 2113). p. 60–72. DOI: https://doi.org/10.1007/978-3-031-61816-1_5

AMAZON WEB SERVICES. Amazon EBS pricing. [S. l.], [s. d.]a. Disponível em: https://aws.amazon.com/ebs/pricing/ Acesso em: 11 set. 2026.

AMAZON WEB SERVICES. Amazon EC2 T3 instances. [S. l.], [s. d.]b. Disponível em: https://aws.amazon.com/ec2/instance-types/t3/ Acesso em: 11 set. 2026.

AMAZON WEB SERVICES. Amazon ECS pricing. [S. l.], [s. d.]c. Disponível em: https://aws.amazon.com/ecs/pricing/ Acesso em: 5 nov. 2026.

AMAZON WEB SERVICES. Amazon EKS pricing. [S. l.], [s. d.]d. Disponível em: https://aws.amazon.com/eks/pricing/ Acesso em: 11 set. 2026.

AMAZON WEB SERVICES. Amazon VPC pricing. [S. l.], [s. d.]e. Disponível em: https://aws.amazon.com/vpc/pricing/ Acesso em: 5 nov. 2026.

AMAZON WEB SERVICES. AWS Fargate pricing. [S. l.], [s. d.]f. Disponível em: https://aws.amazon.com/fargate/pricing/ Acesso em: 11 set. 2026.

AMAZON WEB SERVICES. AWS Lambda pricing. [S. l.], [s. d.]g. Disponível em: https://aws.amazon.com/lambda/pricing/ Acesso em: 11 set. 2026.

AMAZON WEB SERVICES. Best practices for working with AWS Lambda Functions. [S. l.], [s. d.]h. Disponível em: https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html Acesso em: 5 nov. 2026.

AMAZON WEB SERVICES. Configure Lambda Function memory. [S. l.], [s. d.]i. Disponível em: https://docs.aws.amazon.com/lambda/latest/dg/configuration-memory.html Acesso em: 5 nov. 2026.

AMAZON WEB SERVICES. Creating tasks for ongoing replication using AWS DMS. [S. l.], [s. d.]j. Disponível em: https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Task.CDC.html Acesso em: 11 set. 2026.

AMAZON WEB SERVICES. Purchasing On-Demand Instances for Amazon EC2. [S. l.], [s. d.]k. Disponível em: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-on-demand-instances.html Acesso em: 4 nov. 2026.

AMAZON WEB SERVICES. Security in Amazon EKS. [S. l.], [s. d.]l. Disponível em: https://docs.aws.amazon.com/eks/latest/userguide/security.html Acesso em: 4 nov. 2026.

AMAZON WEB SERVICES. Shared responsibility model. [S. l.], [s. d.]m. Disponível em: https://aws.amazon.com/compliance/shared-responsibility-model/ Acesso em: 4 nov. 2026.

AMAZON WEB SERVICES. Understand Fargate Pod configuration details. [S. l.], [s. d.]n. Disponível em: https://docs.aws.amazon.com/eks/latest/userguide/fargate-pod-configuration.html Acesso em: 5 nov. 2026.

AMAZON WEB SERVICES. What is AWS Database Migration Service? [S. l.], [s. d.]o. Disponível em: https://docs.aws.amazon.com/dms/latest/userguide/Welcome.html Acesso em: 11 set. 2026.

BURNS, Brendan; GRANT, Brian; OPPENHEIMER, David; BREWER, Eric; WILKES, John. Borg, Omega, and Kubernetes. ACM Queue, v. 14, n. 1, p. 70–93, 2016. DOI: https://doi.org/10.1145/2898442.2898444

DECKER, Jonathan; KASPRZAK, Piotr; KUNKEL, Julian Martin. Performance evaluation of open-source serverless platforms for Kubernetes. Algorithms, v. 15, n. 7, art. 234, 2022. DOI: https://doi.org/10.3390/a15070234

EISMANN, Simon et al. Serverless applications: why, when, and how? IEEE Software, v. 38, n. 1, p. 32–39, 2021. DOI: https://doi.org/10.1109/MS.2020.3023302

FORSGREN, Nicole; HUMBLE, Jez; KIM, Gene. Accelerate: the science of lean software and DevOps. Portland: IT Revolution Press, 2018.

GARTNER. Gartner forecasts worldwide public cloud end-user spending to total $723 billion in 2025. [S. l.], 19 nov. 2024. Disponível em: https://www.gartner.com/en/newsroom/press-releases/2024-11-19-gartner-forecasts-worldwide-public-cloud-end-user-spending-to-total-723-billion-dollars-in-2025 Acesso em: 4 nov. 2026.

GUPTA, Shubham; GEBHART, Jeff. AWS Lambda standardizes billing for INIT phase. AWS Compute Blog, [S. l.], 29 abr. 2025. Disponível em: https://aws.amazon.com/blogs/compute/aws-lambda-standardizes-billing-for-init-phase/ Acesso em: 4 nov. 2026.

IBM. Qual é o tempo médio para reparo (MTTR)? [S. l.], [s. d.]. Disponível em: https://www.ibm.com/br-pt/think/topics/mttr Acesso em: 4 nov. 2026.

JONAS, Eric et al. Cloud programming simplified: a Berkeley view on serverless computing. Berkeley: University of California, 2019. (Technical Report UCB/EECS-2019-3). Disponível em: https://arxiv.org/abs/1902.03383 Acesso em: 4 nov. 2026.

LAABER, Christoph; SCHEUNER, Joel; LEITNER, Philipp. Software microbenchmarking in the cloud. How bad is it really? Empirical Software Engineering, v. 24, n. 4, p. 2469–2508, 2019. DOI: https://doi.org/10.1007/s10664-019-09681-1

MELL, Peter; GRANCE, Timothy. The NIST definition of cloud computing. Gaithersburg: National Institute of Standards and Technology, 2011. (NIST Special Publication, 800-145). DOI: https://doi.org/10.6028/NIST.SP.800-145

PAHL, Claus. Containerization and the PaaS cloud. IEEE Cloud Computing, v. 2, n. 3, p. 24–31, 2015. DOI: https://doi.org/10.1109/MCC.2015.51

PAPADOPOULOS, Alessandro Vittorio et al. Methodological principles for reproducible performance evaluation in cloud computing. IEEE Transactions on Software Engineering, v. 47, n. 8, p. 1528–1543, 2021. DOI: https://doi.org/10.1109/TSE.2019.2927908

RETOOL. The 2022 state of internal tools. [S. l.], 1 fev. 2023. Disponível em: https://retool.com/blog/state-of-internal-tools-2022 Acesso em: 4 nov. 2026.

RUNESON, Per; HÖST, Martin. Guidelines for conducting and reporting case study research in software engineering. Empirical Software Engineering, v. 14, n. 2, p. 131–164, 2009. DOI: https://doi.org/10.1007/s10664-008-9102-8

SCHEUNER, Joel; LEITNER, Philipp. Function-as-a-Service performance evaluation: a multivocal literature review. Journal of Systems and Software, v. 170, art. 110708, 2020. DOI: https://doi.org/10.1016/j.jss.2020.110708

VILLAMIZAR, Mario et al. Cost comparison of running web applications in the cloud using monolithic, microservice, and AWS Lambda architectures. Service Oriented Computing and Applications, v. 11, n. 2, p. 233–247, 2017. DOI: https://doi.org/10.1007/s11761-017-0208-y

WANG, Liang et al. Peeking behind the curtains of serverless platforms. In: USENIX ANNUAL TECHNICAL CONFERENCE (USENIX ATC 18), 2018, Boston. Proceedings […]. Berkeley: USENIX Association, 2018. p. 133–146.

WOHLIN, Claes; RUNESON, Per; HÖST, Martin; OHLSSON, Magnus C.; REGNELL, Björn; WESSLÉN, Anders. Experimentation in software engineering. Berlin, Heidelberg: Springer, 2012. DOI: https://doi.org/10.1007/978-3-642-29044-2

How to Cite

Moura, K. H. V. B. de, & Shiguemori, A. P. A. de C. e. (2026). SERVERLESS FUNCTIONS, VIRTUAL MACHINES, OR CONTAINERS FOR INTERMITTENTLY USED INTERNAL TOOLS: PERFORMANCE, COST, AND OPERATIONAL RESPONSIBILITY IN AN AWS CASE STUDY. RECIMA21 - Revista Científica Multidisciplinar - ISSN 2675-6218, 7(12), e7129923. https://doi.org/10.47820/recima21.v7i12.9923
Crossmark logo

Similar Articles

You may also start an advanced similarity search for this article.

Most read articles by the same author(s)