@inproceedings{1ae976e5cf70484c85caabc9b494d25a,
title = "Comparing Cost and Performance of Microservices and Serverless in AWS: EC2 vs Lambda",
abstract = "Serverless functions introduce a new way of running cloud-native systems suggesting a reduction in operational costs and delegating scalability to the cloud providers. However, while several companies are adopting serverless functions, it is still unclear if they have a competitive advantage compared to services deployed on docker containers. To compare the performance and the costs of serverless functions and microservices, we introduce a case study comparing microservice-based and serverless-based applications. We compare their performance and cost when each of its services is deployed in a docker container running on AWS EC2 or as a serverless function in AWS Lambda. Our study shows that the serverless functions performed better over time compared to the microservice version after initially having a slower response time. The microservice performance got worse over time, implying that the serverless functions are better suited for larger volumes of internet traffic. Results also indicated that the serverless functions are cheaper to operate than the microservices when the number of monthly requests is limited.",
keywords = "AWS, Case Study, Cost, Microservice, Performance, Serverless",
author = "Christopher Allen and Xiaozhou Li and Abdelfattah, {Amr S.} and Tomas Cerny and Davide Taibi",
note = "Publisher Copyright: {\textcopyright} The Author(s), under exclusive license to Springer Nature Switzerland AG 2024.; Southwest Data Science Conference ; Conference date: 24-03-2024 Through 25-03-2024",
year = "2024",
doi = "10.1007/978-3-031-61816-1_5",
language = "English",
isbn = "9783031618154",
series = "Communications in Computer and Information Science",
publisher = "Springer",
pages = "60--72",
editor = "Henry Han and Erich Baker",
booktitle = "Next Generation Data Science - 2nd Southwest Data Science Conference, SDSC 2023, Revised Selected Papers",
}