Comparing Cost and Performance of Microservices and Serverless in AWS: EC2 vs Lambda

Christopher Allen, Xiaozhou Li, Amr S. Abdelfattah, Tomas Cerny, Davide Taibi

Research output: Chapter in Book/Report/Conference proceedingConference contributionScientificpeer-review

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.

Original languageEnglish
Title of host publicationNext Generation Data Science - 2nd Southwest Data Science Conference, SDSC 2023, Revised Selected Papers
EditorsHenry Han, Erich Baker
PublisherSpringer
Pages60-72
Number of pages13
ISBN (Print)9783031618154
DOIs
Publication statusPublished - 2024
Publication typeA4 Article in conference proceedings
EventSouthwest Data Science Conference - Waco, United States
Duration: 24 Mar 202425 Mar 2024

Publication series

NameCommunications in Computer and Information Science
Volume2113 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

ConferenceSouthwest Data Science Conference
Country/TerritoryUnited States
CityWaco
Period24/03/2425/03/24

Keywords

  • AWS
  • Case Study
  • Cost
  • Microservice
  • Performance
  • Serverless

Publication forum classification

  • Publication forum level 1

ASJC Scopus subject areas

  • General Computer Science
  • General Mathematics

Fingerprint

Dive into the research topics of 'Comparing Cost and Performance of Microservices and Serverless in AWS: EC2 vs Lambda'. Together they form a unique fingerprint.

Cite this