Skip to content
Preprint

An Empirical Comparison of Monolithic and Microservices Architectures for an E-Commerce Application

Aug 2026 · 0 citations · 5 references
Computer Science

TL;DR

An experimental comparison of a monolithic and a microservices implementation of the same e-commerce application, both backed by a shared PostgreSQL database, suggests that decomposing the system into microservices improves scalability and tail latency under stress, while introducing distinct, service-specific failure modes that must be managed.

Abstract

Microservices architectures are widely adopted for their promised scalability and modularity, yet empirical evidence comparing their runtime performance to monolithic designs remains context-dependent. This paper presents an experimental comparison of a monolithic and a microservices implementation of the same e-commerce application, both backed by a shared PostgreSQL database. Using k6, we subject both systems to identical HTTP workloads at 50 and 100 virtual users (VUs) over 60-second runs, measuring throughput, latency, and error rates. At 50 VUs, both architectures perform similarly with no errors. At 100 VUs, the microservices design achieves 5.4% higher throughput, 25% lower average latency, and 39% lower p95 latency than the monolith, while exhibiting a lower median error rate (0.00% vs 0.69%). The monolith shows consistent order-creation failures under load, whereas microservices failures are transient and confined to the cart service in one run. These results suggest that, in this deployment context, decomposing the system into microservices improves scalability and tail latency under stress, while introducing distinct, service-specific failure modes that must be managed.

View source

Similar papers

Review Open access 2026

A Comparative Analysis of Monolithic and Microservices Architectures: Performance and Cost Perspectives

This research will perform a comparative evaluation of monolithic architecture and microservices architecture with a focus on their performance and cost characteristics to help developers to choose one of the styles considering its performance and cost characteristics.

R. Rautela, Abhisekh Mishra, Aditya Pandey et al. · 0 citations
Open access Jul 2026

Tail latency, throughput, and memory overhead of monolithic and microservices architectures in resource-constrained docker deployments

This study compares the implementation of the same backend system, Node.js/Express and MariaDB, in a monolithic and microservices architecture with the same Docker resource allocation, 2 CPUs and 512 MB RAM per architecture, except database containers.

Yoga Ari Tofan · 0 citations
Jul 2026

Performance Evaluation of API Gateways in Microservices System: No Gateway, Kong, and Native

API Gateway selection is a critical architectural decision in microservices systems, yet empirical comparisons between competing gateway strategies are scarce, particularly for PHP-based systems at the SME scale. This study presents a comparative performance analysis of three API Gateway implementations within System X...

Novika Natalia, Rahmat Yasirandi, Sheina Fathur Rahman · 0 citations
Conference Jul 2026

WebAssembly on the Cloud Continuum: A Multi-Architecture Evaluation on Kubernetes

This paper presents a systematic, practice-driven evaluation of WebAssembly (WASM) as an execution substrate for cloud-native workloads orchestrated through Docker and Kubernetes using runwasi. We develop a reproducible workflow that compiles Rust and Go/TinyGo applications to WASM modules, applies Ahead-of-Time (AOT)...

Álvaro Vázquez-Rodríguez, David Vila-Pérez, Carlos Giraldo-Rodíguez et al. · 0 citations
Open access 2026

Evaluating the Architectural Impact of Monolithic and Microservices Styles on Operational Efficiency in Modern Software Systems

This paper analyzes the two software architectural approaches namely Monolithic Architecture vs Microservices Architecture when considering scalable software development, and puts the following into consideration: empirical trade-offs, scalability consideration, organizational implications, and development complexity.

Theophilus Bamise Ajala, A. Oduroye, I. Ayoade et al. · 0 citations
Open access 2026

Performance of REST and gRPC in Microservices: Java Blocking vs. Python Non-Blocking I/O

The selection of communication protocols and underlying concurrency models profoundly impacts the performance and resource efficiency of microservice architectures. While existing studies frequently compare protocols like REST and gRPC, they often overlook the compounded effects of language-specific I/O paradigms durin...

A. Noertjahyana, Kartika Gunadi, Joseph Justin Harsono et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.