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.


翻译:暂无翻译

0
下载
关闭预览

相关内容

综述:生成式通信,面向6G的可控生成新范式
专知会员服务
12+阅读 · 7月13日
《大模型一体机应用研究报告(2025年)》,48页pdf
专知会员服务
27+阅读 · 2025年11月2日
《大模型行业可信应用框架研究报告》(附全文)
专知会员服务
39+阅读 · 2024年9月6日
最新《工业大模型应用报告》
专知会员服务
121+阅读 · 2024年4月5日
微系统发展现状及其在无人装备领域应用和展望
专知会员服务
44+阅读 · 2024年2月5日
中国信通院《新型智慧城市产业图谱研究报告》
专知会员服务
33+阅读 · 2022年3月9日
中国信通院:量子信息技术发展与应用研究报告
专知会员服务
43+阅读 · 2022年1月1日
专知会员服务
39+阅读 · 2021年9月8日
【数字孪生】工业互联网和数字孪生
产业智能官
19+阅读 · 2019年9月5日
【数字孪生】工业互联网支持下的数字孪生车间
产业智能官
21+阅读 · 2019年6月3日
【数字孪生】超棒PPT解读Digital Twin十大领域应用!
产业智能官
103+阅读 · 2019年3月26日
A Technical Overview of AI & ML in 2018 & Trends for 2019
待字闺中
18+阅读 · 2018年12月24日
中国工程院:《全球工程前沿2018》(附PDF下载)
走向智能论坛
10+阅读 · 2018年12月5日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
最新内容
俄罗斯如何拦截乌克兰无人机与巡航导弹
专知会员服务
8+阅读 · 10月15日
《武器-目标分配问题:精确与近似求解算法》
专知会员服务
10+阅读 · 10月15日
综述|谁来改进机器人?迈向物理递归自我改进
专知会员服务
10+阅读 · 10月14日
软件定义无人机蜂群给防空带来全新压力
专知会员服务
10+阅读 · 10月13日
《半自主无人地面战车的互操作性》66页
专知会员服务
14+阅读 · 10月13日
相关VIP内容
综述:生成式通信,面向6G的可控生成新范式
专知会员服务
12+阅读 · 7月13日
《大模型一体机应用研究报告(2025年)》,48页pdf
专知会员服务
27+阅读 · 2025年11月2日
《大模型行业可信应用框架研究报告》(附全文)
专知会员服务
39+阅读 · 2024年9月6日
最新《工业大模型应用报告》
专知会员服务
121+阅读 · 2024年4月5日
微系统发展现状及其在无人装备领域应用和展望
专知会员服务
44+阅读 · 2024年2月5日
中国信通院《新型智慧城市产业图谱研究报告》
专知会员服务
33+阅读 · 2022年3月9日
中国信通院:量子信息技术发展与应用研究报告
专知会员服务
43+阅读 · 2022年1月1日
专知会员服务
39+阅读 · 2021年9月8日
相关资讯
相关基金
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员