How Does Microservice Granularity Impact Energy Consumption and Performance? A Controlled Experiment
Yiming Zhao, Tiziano De Matteis, Justus Bogner

TL;DR
This study investigates how the level of microservice granularity affects energy consumption and performance, revealing significant impacts and complex interactions that inform better microservice design decisions.
Contribution
It provides the first controlled experimental analysis of microservice granularity's effects on energy and performance across different system scales.
Findings
Finer granularity increases energy consumption and response time.
Higher request loads significantly raise energy use and response times.
System scale influences the relationship between granularity, energy, and performance.
Abstract
Context: Microservice architectures are a widely used software deployment approach, with benefits regarding flexibility and scalability. However, their impact on energy consumption is poorly understood, and often overlooked in favor of performance and other quality attributes (QAs). One understudied concept in this area is microservice granularity, i.e., over how many services the system functionality is distributed. Objective: We therefore aim to analyze the relationship between microservice granularity and two critical QAs in microservice-based systems: energy consumption and performance. Method: We conducted a controlled experiment using two open-source microservice-based systems of different scales: the small Pet Clinic system and the large Train Ticket system. For each system, we created three levels of granularity by merging or splitting services (coarse, medium, and fine) and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
