Camila Medeiros Rêgo, Ricardo César Mendonça Filho, Nabor C. Mendonça
{"title":"微服务粒度对性能和弹性的影响:使用Service Weaver和Amazon EKS的实证评估","authors":"Camila Medeiros Rêgo, Ricardo César Mendonça Filho, Nabor C. Mendonça","doi":"10.1002/nem.70019","DOIUrl":null,"url":null,"abstract":"<p>Determining the optimal granularity level for microservices applications is a critical challenge in modern software architecture. This study leverages the Service Weaver framework to investigate the performance and resilience implications of different service granularity configurations in a public cloud environment. We deployed multiple configurations of the Online Boutique microservice demo application on Amazon Elastic Kubernetes Service (EKS) and conducted a series of experiments to evaluate their behavior under varying workloads and failure conditions. Our results indicate that distributing services across multiple EKS nodes can significantly enhance scalability, particularly under high workloads, but at the cost of increased communication overhead. We also found that while cloud-native resilience mechanisms, such as automatic re-starts and retries, effectively mitigate frequent random failures, they tend to impose a notable performance overhead, especially in configurations with tightly coupled services. Our findings highlight the importance of carefully balancing service granularity with both performance and resilience considerations when designing robust cloud-based microservice applications.</p>","PeriodicalId":14154,"journal":{"name":"International Journal of Network Management","volume":"35 4","pages":""},"PeriodicalIF":2.6000,"publicationDate":"2025-06-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://onlinelibrary.wiley.com/doi/epdf/10.1002/nem.70019","citationCount":"0","resultStr":"{\"title\":\"Performance and Resilience Impact of Microservice Granularity: An Empirical Evaluation Using Service Weaver and Amazon EKS\",\"authors\":\"Camila Medeiros Rêgo, Ricardo César Mendonça Filho, Nabor C. Mendonça\",\"doi\":\"10.1002/nem.70019\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>Determining the optimal granularity level for microservices applications is a critical challenge in modern software architecture. This study leverages the Service Weaver framework to investigate the performance and resilience implications of different service granularity configurations in a public cloud environment. We deployed multiple configurations of the Online Boutique microservice demo application on Amazon Elastic Kubernetes Service (EKS) and conducted a series of experiments to evaluate their behavior under varying workloads and failure conditions. Our results indicate that distributing services across multiple EKS nodes can significantly enhance scalability, particularly under high workloads, but at the cost of increased communication overhead. We also found that while cloud-native resilience mechanisms, such as automatic re-starts and retries, effectively mitigate frequent random failures, they tend to impose a notable performance overhead, especially in configurations with tightly coupled services. Our findings highlight the importance of carefully balancing service granularity with both performance and resilience considerations when designing robust cloud-based microservice applications.</p>\",\"PeriodicalId\":14154,\"journal\":{\"name\":\"International Journal of Network Management\",\"volume\":\"35 4\",\"pages\":\"\"},\"PeriodicalIF\":2.6000,\"publicationDate\":\"2025-06-24\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://onlinelibrary.wiley.com/doi/epdf/10.1002/nem.70019\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"International Journal of Network Management\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://onlinelibrary.wiley.com/doi/10.1002/nem.70019\",\"RegionNum\":4,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"COMPUTER SCIENCE, INFORMATION SYSTEMS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Network Management","FirstCategoryId":"94","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.1002/nem.70019","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0
摘要
确定微服务应用程序的最佳粒度级别是现代软件体系结构中的一个关键挑战。本研究利用Service Weaver框架来研究公共云环境中不同服务粒度配置对性能和弹性的影响。我们在Amazon Elastic Kubernetes Service (EKS)上部署了Online Boutique微服务演示应用程序的多个配置,并进行了一系列实验,以评估它们在不同工作负载和故障条件下的行为。我们的结果表明,跨多个EKS节点分布服务可以显著增强可伸缩性,特别是在高工作负载下,但代价是增加通信开销。我们还发现,虽然云原生弹性机制(如自动重新启动和重试)可以有效地减轻频繁的随机故障,但它们往往会带来显著的性能开销,特别是在紧密耦合服务的配置中。我们的研究结果强调了在设计健壮的基于云的微服务应用程序时,仔细平衡服务粒度与性能和弹性的重要性。
Performance and Resilience Impact of Microservice Granularity: An Empirical Evaluation Using Service Weaver and Amazon EKS
Determining the optimal granularity level for microservices applications is a critical challenge in modern software architecture. This study leverages the Service Weaver framework to investigate the performance and resilience implications of different service granularity configurations in a public cloud environment. We deployed multiple configurations of the Online Boutique microservice demo application on Amazon Elastic Kubernetes Service (EKS) and conducted a series of experiments to evaluate their behavior under varying workloads and failure conditions. Our results indicate that distributing services across multiple EKS nodes can significantly enhance scalability, particularly under high workloads, but at the cost of increased communication overhead. We also found that while cloud-native resilience mechanisms, such as automatic re-starts and retries, effectively mitigate frequent random failures, they tend to impose a notable performance overhead, especially in configurations with tightly coupled services. Our findings highlight the importance of carefully balancing service granularity with both performance and resilience considerations when designing robust cloud-based microservice applications.
期刊介绍:
Modern computer networks and communication systems are increasing in size, scope, and heterogeneity. The promise of a single end-to-end technology has not been realized and likely never will occur. The decreasing cost of bandwidth is increasing the possible applications of computer networks and communication systems to entirely new domains. Problems in integrating heterogeneous wired and wireless technologies, ensuring security and quality of service, and reliably operating large-scale systems including the inclusion of cloud computing have all emerged as important topics. The one constant is the need for network management. Challenges in network management have never been greater than they are today. The International Journal of Network Management is the forum for researchers, developers, and practitioners in network management to present their work to an international audience. The journal is dedicated to the dissemination of information, which will enable improved management, operation, and maintenance of computer networks and communication systems. The journal is peer reviewed and publishes original papers (both theoretical and experimental) by leading researchers, practitioners, and consultants from universities, research laboratories, and companies around the world. Issues with thematic or guest-edited special topics typically occur several times per year. Topic areas for the journal are largely defined by the taxonomy for network and service management developed by IFIP WG6.6, together with IEEE-CNOM, the IRTF-NMRG and the Emanics Network of Excellence.