arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.00440cs.SEcs.DB
收藏

微服务架构中事件管理挑战的实证研究

An Empirical Study on Challenges of Event Management in Microservice Architectures

Rodrigo Laigner, Ana Carolina Almeida, Wesley K. G. Assunção, Yongluan Zhou

AI总结:

本文通过挖掘超8000个Stack Overflow问题并人工分析628个样本,首次系统刻画了微服务中事件管理的实践与挑战,识别出大型事件负载、事件模式建模、事件流审计及顺序约束等关键问题,并为开发者、技术提供商和研究人员提出可操作的改进建议。

摘要:

过去十年间,微服务已成为一种流行的架构风格。尽管微服务被设计为自包含的,但它们必须相互通信以实现业务能力,从而在其数据和功能之间产生依赖关系。开发者随后采用异步、基于事件的通信来满足这些依赖关系,同时降低耦合度。然而,开发者往往对异步和基于事件范式的固有挑战缺乏认识,这导致挫败感,并最终使他们重新考虑是否采用微服务。更糟糕的是,关于设计、实现、测试、监控和排查基于事件的微服务的实践与挑战的文献十分匮乏。为填补这一空白,本文基于对超过8000个Stack Overflow问题的仓库挖掘研究,首次对微服务中的事件管理实践和挑战进行了全面刻画。此外,随机抽样了628个相关问题进行深入的人工调查以分析挑战。我们发现开发者遇到许多问题,包括大型事件负载、事件模式建模、事件流审计以及处理事件时的顺序约束。这表明现有最先进的技术未能充分满足开发者的需求。我们为开发者、技术提供商和研究人员提供了可操作的启示,以推进微服务中的事件管理。

英文摘要:

Microservices emerged as a popular architectural style over the last decade. Although microservices are designed to be self-contained, they must communicate to realize business capabilities, creating dependencies among their data and functionalities. Developers then resort to asynchronous, event-based communication to fulfill such dependencies while reducing coupling. However, developers are often oblivious to the inherent challenges of the asynchronous and event-based paradigm, leading to frustrations and ultimately making them reconsider the adoption of microservices. To make matters worse, there is a scarcity of literature on the practices and challenges of designing, implementing, testing, monitoring, and troubleshooting event-based microservices. To fill this gap, this paper provides the first comprehensive characterization of event management practices and challenges in microservices based on a repository mining study of over 8000 Stack Overflow questions. Moreover, 628 relevant questions were randomly sampled for an in-depth manual investigation of challenges. We find that developers encounter many problems, including large event payloads, modeling event schemas, auditing event flows, and ordering constraints in processing events. This suggests that developers are not sufficiently served by state-of-the-practice technologies. We provide actionable implications to developers, technology providers, and researchers to advance event management in microservices.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑