[Paper Review] A comparison between traditional and Serverless technologies in a microservices setting
This paper evaluates the performance and cost trade-offs of migrating a microservices-based e-commerce application from traditional Kubernetes to serverless architectures using AWS, comparing nine configurations combining AWS Lambda, ECS Fargate, and database options (DynamoDB and DocumentDB). The study finds that while serverless reduces operational overhead, performance and cost outcomes vary significantly based on workload patterns, with cold starts and state management being critical factors in architectural decisions.
Serverless technologies, also known as FaaS (Function as a Service), are promoted as solutions that provide dynamic scalability, speed of development, cost-per-consumption model, and the ability to focus on the code while taking attention away from the infrastructure that is managed by the vendor. A microservices architecture is defined by the interaction and management of the application state by several independent services, each with a well-defined domain. When implementing software architectures based on microservices, there are several decisions to take about the technologies and the possibility of adopting Serverless. In this study, we implement 9 prototypes of the same microservice application using different technologies. Some architectural decisions and their impact on the performance and cost of the result obtained are analysed. We use Amazon Web Services and start with an application that uses a more traditional deployment environment (Kubernetes) and migration to a serverless architecture is performed by combining and analysing the impact (both cost and performance) of the use of different technologies such as AWS ECS Fargate, AWS Lambda, DynamoDB or DocumentDB.
Motivation & Objective
- To evaluate the performance and cost implications of migrating microservices from traditional Kubernetes to serverless architectures.
- To identify architectural trade-offs when adopting serverless technologies like AWS Lambda and ECS Fargate in microservices.
- To analyze the impact of database choices—DynamoDB (serverless) vs. DocumentDB (provisioned)—on system cost and performance.
- To provide empirical data and open-source prototypes to guide migration decisions in real-world cloud-native projects.
- To highlight non-trivial challenges in migration, including cold starts, state management, and resource allocation.
Proposed method
- Implemented a baseline microservices e-commerce application using Kubernetes and Spring Boot.
- Migrated the application to nine distinct configurations combining AWS Lambda, ECS Fargate, and two database services: DynamoDB (fully serverless) and DocumentDB (provisioned, not serverless).
- Measured performance through request latency and throughput under controlled workloads.
- Calculated infrastructure costs based on AWS pricing models for each configuration.
- Used automated scripts and monitoring tools to collect runtime metrics across all prototypes.
- Open-sourced all implementations and evaluation scripts for reproducibility and community use.
Experimental results
Research questions
- RQ1How do performance characteristics (latency, throughput) differ between traditional Kubernetes and serverless deployments (Lambda, Fargate) in a microservices setting?
- RQ2What is the cost impact of using serverless functions versus managed containers and provisioned databases in a microservices architecture?
- RQ3How do database choices (DynamoDB vs. DocumentDB) affect both cost and performance in serverless and traditional architectures?
- RQ4What are the key non-functional challenges (e.g., cold starts, state management) encountered during migration from Kubernetes to serverless?
- RQ5To what extent do architectural decisions in serverless migration affect operational complexity and maintainability?
Key findings
- Serverless architectures like AWS Lambda significantly reduce operational overhead but introduce variable latency due to cold starts, especially under low request volumes.
- ECS Fargate offers a middle ground with predictable performance and lower cold start impact than Lambda, but at higher cost than fine-grained serverless functions.
- DynamoDB consistently delivered lower costs than DocumentDB in serverless workloads, especially under sporadic or bursty traffic patterns.
- The cost of auto-scaling in serverless is not free—performance degradation and increased costs can occur when scaling triggers are not tuned properly.
- Migration from Kubernetes to serverless requires architectural refactoring, not just deployment changes, with significant re-architecting needed for stateful components.
- The choice between serverless and traditional microservices is not universally optimal; performance and cost outcomes depend heavily on workload characteristics and data access patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.