Identifying Domain-Based Cyclic Dependencies in Microservice APIs Using Source Code Detectors

被引:9
|
作者
Genfer, Patric [1 ]
Zdun, Uwe [1 ]
机构
[1] Univ Vienna, Fac Comp Sci, Res Grp Software Architecture, Vienna, Austria
来源
基金
奥地利科学基金会;
关键词
Microservice API; Domain-based cyclic dependencies; Metrics; Source code detectors;
D O I
10.1007/978-3-030-86044-8_15
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Isolation, autonomy, and loose coupling are critical success factors of microservice architectures. Unfortunately, systems tend to become strongly coupled over time, sometimes even exhibiting cyclic communication chains, making the individual deployment of services challenging. Such chains are highly problematic when strongly coupled communication e.g. based on synchronous invocations is used, but also create complexity and maintenance issues in more loosely coupled asynchronous or event-based communication. Here, cycles only manifest on a conceptual or domain level, making them hard to track for algorithms that rely solely on static analysis. Accordingly, previous attempts to detect cycles either focused on synchronous communication or had to collect additional runtime data, which can be costly and time-consuming. We suggest a novel approach for identifying and evaluating domain-based cyclic dependencies in microservice systems based on modular, reusable source code detectors. Based on the architecture model reconstructed by the detectors, we derived a set of architectural metrics for detecting and classifying domain-based cyclical dependencies. By conducting two case studies on open-source microservice architectures, we validated the feasibility and applicability of our approach.
引用
收藏
页码:207 / 222
页数:16
相关论文
共 50 条
  • [1] Software Developer Activity as a Source for Identifying Hidden Source Code Dependencies
    Konopka, Martin
    Bielikova, Maria
    SOFSEM 2015: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2015, 8939 : 449 - 462
  • [2] A Neural-Network based Code Summarization Approach by Using Source Code and its Call Dependencies
    Liu, Bohong
    Wang, Tao
    Zhang, Xunhui
    Fan, Qiang
    Yin, Gang
    Deng, Jinsheng
    11TH ASIA-PACIFIC SYMPOSIUM ON INTERNETWARE (INTERNETWARE 2019), 2019,
  • [3] Identifying Source Code Reuse across Repositories using LCS-based Source Code Similarity
    Kawamitsu, Naohiro
    Ishio, Takashi
    Kanda, Tetsuya
    Kula, Raula Gaikovina
    De Roover, Coen
    Inoue, Katsuro
    2014 14TH IEEE INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM 2014), 2014, : 305 - 314
  • [4] A MICROSERVICE DECOMPOSITION METHOD THROUGH USING DISTRIBUTED REPRESENTATION OF SOURCE CODE
    Al-Debagy, Omar
    Martinek, Peter
    SCALABLE COMPUTING-PRACTICE AND EXPERIENCE, 2021, 22 (01): : 39 - 52
  • [5] A Microservice Decomposition Method Through Using Distributed Representation Of Source Code
    Al-Debagy O.
    Martinek P.
    Scalable Computing, 2021, 22 (01): : 39 - 52
  • [6] On the Relationships between Domain-Based Coupling and Code Clones: An Exploratory Study
    Rahman, Md Saidur
    Aryani, Amir
    Roy, Chanchal K.
    Perin, Fabrizio
    PROCEEDINGS OF THE 35TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2013), 2013, : 1265 - 1268
  • [7] Predicting dependences using domain-based coupling
    Aryani, Amir
    Perin, Fabrizio
    Lungu, Mircea
    Mahmood, Abdun Naser
    Nierstrasz, Oscar
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2014, 26 (01) : 50 - 76
  • [8] Scalability Assessment of Microservice Architecture Deployment Configurations: A Domain-based Approach Leveraging Operational Profiles and Load Tests
    Avritzer, Alberto
    Ferme, Vincenzo
    Janes, Andrea
    Russo, Barbara
    van Hoorn, Andre
    Schulz, Henning
    Menasche, Daniel
    Rufino, Vilc
    JOURNAL OF SYSTEMS AND SOFTWARE, 2020, 165
  • [9] Search in Source Code Based on Identifying Popular Fragments
    Kuric, Eduard
    Bielikova, Maria
    SOFSEM 2013: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2013, 7741 : 408 - 419
  • [10] A Domain-Based Model for Identifying Regional Collision Risk and Depicting Its Geographical Distribution
    Liu, Zihao
    Wu, Zhaolin
    Zheng, Zhongyi
    Yu, Xianda
    Bu, Xiaoxuan
    Zhang, Wenjun
    JOURNAL OF MARINE SCIENCE AND ENGINEERING, 2023, 11 (11)