Cost Analysis of Running Web Application in Cloud Monolith, Microservice and Serverless Architecture
Cloud computing has become a popular choice for deploying web applications, but the selection of the appropriate architecture for different application types remains a challenge for businesses. In this study, we conducted performance and cost analyses of three architectures: Monolith, Microservice,...
Saved in:
Main Authors: | , , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
Shaheed Zulfikar Ali Bhutto Institute of Science and Technology
2024-12-01
|
Series: | JISR on Computing |
Subjects: | |
Online Access: | http://jisrc.szabist.edu.pk/ojs/index.php/jisrc/article/view/218 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
_version_ | 1823858670016921600 |
---|---|
author | Muhammad Uzair Nadeem Syed Muhammad Khaliq-ur-Rahman Raazi Bilal Mehboob Syed Mubashir Ali Saqlain Raza |
author_facet | Muhammad Uzair Nadeem Syed Muhammad Khaliq-ur-Rahman Raazi Bilal Mehboob Syed Mubashir Ali Saqlain Raza |
author_sort | Muhammad Uzair Nadeem |
collection | DOAJ |
description | Cloud computing has become a popular choice for deploying web applications, but the selection of the appropriate architecture for different application types remains a challenge for businesses. In this study, we conducted performance and cost analyses of three architectures: Monolith, Microservice, and Serverless (specifically Lambda and Fargate) to provide businesses with valuable insights for decision-making. To ensure the relevance of our findings, we conducted tests on an application designed for static, database, and batch job services, deployed on AWS. Using JMeter, we simulated traffic with varying levels of high, medium, and low intensity, distributing 500 requests across six test scenarios. The results and subsequent analysis revealed that Lambda outperformed the other architectures significantly, while Fargate and Microservice architectures exhibited lower performance in comparison. However, cost played a crucial role in architecture selection. Fargate proved to be exceptionally expensive, with costs escalating further when batch jobs were involved. On the other hand, Lambda demonstrated lower overall costs compared to the other architectures, especially when batch jobs were running under low traffic conditions. However, the cost advantage diminished when running batch jobs in higher traffic scenarios, surpassing the expenses of Monolith and Microservice architectures. The findings highlight the superior performance of Lambda, but also emphasize the importance of considering costs and specific workload requirements when selecting an architecture. Lambda outperformed other architectures by reducing average response time by 25% and cost by 15% under low-traffic scenarios compared to Monolithic and Microservice architectures.
|
format | Article |
id | doaj-art-d1540aa69b4b4729aad62403dd2a7e60 |
institution | Kabale University |
issn | 2412-0448 1998-4154 |
language | English |
publishDate | 2024-12-01 |
publisher | Shaheed Zulfikar Ali Bhutto Institute of Science and Technology |
record_format | Article |
series | JISR on Computing |
spelling | doaj-art-d1540aa69b4b4729aad62403dd2a7e602025-02-11T10:35:19ZengShaheed Zulfikar Ali Bhutto Institute of Science and TechnologyJISR on Computing2412-04481998-41542024-12-0122210.31645/JISRC.24.22.2.7Cost Analysis of Running Web Application in Cloud Monolith, Microservice and Serverless ArchitectureMuhammad Uzair Nadeem0Syed Muhammad Khaliq-ur-Rahman Raazi1Bilal Mehboob2Syed Mubashir Ali3Saqlain Raza4Faculty of Computing Muhammad Ali Jinnah University (MAJU) Karachi, PakistanFaculty of Computing Mohammad Ali Jinnah University (MAJU) Karachi, PakistanFaculty of Computer Science and Information Technology Superior University Lahore, PakistanMalaysian Institute of Information Technology, Universiti Kuala Lumpur (UniKL MIIT) Kuala Lumpur, MalaysiaFaculty of Computing Mohammad Ali Jinnah University (MAJU) Karachi, PakistanCloud computing has become a popular choice for deploying web applications, but the selection of the appropriate architecture for different application types remains a challenge for businesses. In this study, we conducted performance and cost analyses of three architectures: Monolith, Microservice, and Serverless (specifically Lambda and Fargate) to provide businesses with valuable insights for decision-making. To ensure the relevance of our findings, we conducted tests on an application designed for static, database, and batch job services, deployed on AWS. Using JMeter, we simulated traffic with varying levels of high, medium, and low intensity, distributing 500 requests across six test scenarios. The results and subsequent analysis revealed that Lambda outperformed the other architectures significantly, while Fargate and Microservice architectures exhibited lower performance in comparison. However, cost played a crucial role in architecture selection. Fargate proved to be exceptionally expensive, with costs escalating further when batch jobs were involved. On the other hand, Lambda demonstrated lower overall costs compared to the other architectures, especially when batch jobs were running under low traffic conditions. However, the cost advantage diminished when running batch jobs in higher traffic scenarios, surpassing the expenses of Monolith and Microservice architectures. The findings highlight the superior performance of Lambda, but also emphasize the importance of considering costs and specific workload requirements when selecting an architecture. Lambda outperformed other architectures by reducing average response time by 25% and cost by 15% under low-traffic scenarios compared to Monolithic and Microservice architectures. http://jisrc.szabist.edu.pk/ojs/index.php/jisrc/article/view/218MonolithMicroserviceServerlessAWSAWS LambdaAWS Fargate |
spellingShingle | Muhammad Uzair Nadeem Syed Muhammad Khaliq-ur-Rahman Raazi Bilal Mehboob Syed Mubashir Ali Saqlain Raza Cost Analysis of Running Web Application in Cloud Monolith, Microservice and Serverless Architecture JISR on Computing Monolith Microservice Serverless AWS AWS Lambda AWS Fargate |
title | Cost Analysis of Running Web Application in Cloud Monolith, Microservice and Serverless Architecture |
title_full | Cost Analysis of Running Web Application in Cloud Monolith, Microservice and Serverless Architecture |
title_fullStr | Cost Analysis of Running Web Application in Cloud Monolith, Microservice and Serverless Architecture |
title_full_unstemmed | Cost Analysis of Running Web Application in Cloud Monolith, Microservice and Serverless Architecture |
title_short | Cost Analysis of Running Web Application in Cloud Monolith, Microservice and Serverless Architecture |
title_sort | cost analysis of running web application in cloud monolith microservice and serverless architecture |
topic | Monolith Microservice Serverless AWS AWS Lambda AWS Fargate |
url | http://jisrc.szabist.edu.pk/ojs/index.php/jisrc/article/view/218 |
work_keys_str_mv | AT muhammaduzairnadeem costanalysisofrunningwebapplicationincloudmonolithmicroserviceandserverlessarchitecture AT syedmuhammadkhaliqurrahmanraazi costanalysisofrunningwebapplicationincloudmonolithmicroserviceandserverlessarchitecture AT bilalmehboob costanalysisofrunningwebapplicationincloudmonolithmicroserviceandserverlessarchitecture AT syedmubashirali costanalysisofrunningwebapplicationincloudmonolithmicroserviceandserverlessarchitecture AT saqlainraza costanalysisofrunningwebapplicationincloudmonolithmicroserviceandserverlessarchitecture |