How Does Microservice Granularity Impact Energy Consumption and Performance? A Controlled Experiment
This program is tentative and subject to change.
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 then exposed them to five levels of request frequency.
Results: Our findings revealed that: i) granularity significantly affected both energy consumption and response time, e.g., in the large system, fine granularity consumed on average 461 J more energy (13%) and added 5.2 ms to response time (14%) compared to coarse granularity; ii) higher request loads significantly increased both energy consumption and response times, with moving from 40 to 400 requests / s resulting in 651 J higher energy consumption (23%) and 41.2 ms longer response times (98%); iii) there is a complex relationship between granularity, system scale, energy consumption, and performance that warrants careful consideration in microservice design. We derive generalizable takeaways from our results.
Conclusion: Microservices practitioners should take our findings into account when making granularity-related decisions, especially for large-scale systems.
This program is tentative and subject to change.
Wed 2 AprDisplayed time zone: Brussels, Copenhagen, Madrid, Paris change
12:30 - 13:30 | Microservices and Cloud-Native Architectures IResearch Papers at Hall 2 (U82) Chair(s): Davide Taibi University of Oulu | ||
12:30 15mResearch paper | Architecture and Performance Antipatterns Correlation in Microservice Architectures Research Papers Alberto Avritzer eSulabSolutions, Andrea Janes Free University of Bozen-Bolzano, Catia Trubiani Gran Sasso Science Institute, Helena Rodrigues Universidade do Minho, Yuanfang Cai Drexel University, Daniel Sadoc Menasché , Álvaro José Abreu de Oliveira | ||
12:45 15mResearch paper | Network Centrality as a New Perspective on Microservice Architecture Research Papers Alexander Bakhtin University of Oulu, Matteo Esposito University of Oulu, Valentina Lenarduzzi University of Oulu, Davide Taibi University of Oulu Pre-print | ||
13:00 15mResearch paper | How Does Microservice Granularity Impact Energy Consumption and Performance? A Controlled Experiment Research Papers Yiming Zhao Vrije Universiteit Amsterdam, The Netherlands, Tiziano De Matteis University of Pisa, Italy, Justus Bogner Vrije Universiteit Amsterdam Pre-print | ||
13:15 15mResearch paper | Affinity-aware Serverless Function Scheduling Research Papers Giuseppe De Palma Department of Computer Science and Engineering - Università di Bologna, Saverio Giallorenzo Alma Mater Studiorum - Università di Bologna / INRIA, Jacopo Mauro University of Southern Denmark, Matteo Trentin Università di Bologna, Gianluigi Zavattaro Department of Computer Science and Engineering - Università di Bologna Pre-print |