arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.08175cs.SE
收藏

实践中的微服务 API 演进:策略与挑战研究

Microservice API Evolution in Practice: A Study on Strategies and Challenges

Alexander Lercher, Johann Glock, Christian Macho, Martin Pinzger

AI总结:

本文通过17次半结构化访谈研究了实践中微服务API演进的策略与挑战,识别出6种策略和6项挑战,并指出紧密的组织耦合与消费者锁定两个关键问题,提出自动化变更影响分析与有效沟通作为未来研究方向。

摘要:

如今,许多公司将其软件系统设计并开发为一组通过应用程序编程接口(API)进行通信的松散耦合微服务。虽然松散耦合提高了可维护性、可扩展性和容错性,但它给 API 演进过程带来了新的挑战。相关工作将通信和集成确定为主要的 API 演进挑战,但未提供其根本原因及缓解它们的研究方向。在本文中,我们旨在识别实践中微服务 API 演进的策略与挑战,并对其关系获得更广泛的视角。我们对 11 家公司的开发者、架构师和管理者进行了 17 次半结构化访谈,并使用扎根理论中的开放式编码对访谈进行了分析。我们总共为表现层状态转移(REST)和通过消息代理的事件驱动通信确定了 6 种策略和 6 项挑战。这些策略主要关注 API 向后兼容性、版本控制以及团队间的紧密协作。挑战包括变更影响分析工作、无效的变更沟通以及消费者对过时版本的依赖,导致 API 设计退化。我们定义了由这些挑战及其应对策略引起的微服务 API 演进中的两个重要问题:紧密的组织耦合和消费者锁定。为缓解这两个问题,我们提出将自动化变更影响分析和调查有效的变更沟通作为开放研究方向。

英文摘要:

Nowadays, many companies design and develop their software systems as a set of loosely coupled microservices that communicate via their Application Programming Interfaces (APIs). While the loose coupling improves maintainability, scalability, and fault tolerance, it poses new challenges to the API evolution process. Related works identified communication and integration as major API evolution challenges but did not provide the underlying reasons and research directions to mitigate them. In this paper, we aim to identify microservice API evolution strategies and challenges in practice and gain a broader perspective of their relationships. We conducted 17 semi-structured interviews with developers, architects, and managers in 11 companies and analyzed the interviews with open coding used in grounded theory. In total, we identified six strategies and six challenges for REpresentational State Transfer (REST) and event-driven communication via message brokers. The strategies mainly focus on API backward compatibility, versioning, and close collaboration between teams. The challenges include change impact analysis efforts, ineffective communication of changes, and consumer reliance on outdated versions, leading to API design degradation. We defined two important problems in microservice API evolution resulting from the challenges and their coping strategies: tight organizational coupling and consumer lock-in. To mitigate these two problems, we propose automating the change impact analysis and investigating effective communication of changes as open research directions.

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

↑