Ensuring microservice architectural consistency through automated detection of drifts and erosions

dc.contributor.advisorRathnayake, S
dc.contributor.authorJabir, AZ
dc.date.accept2024
dc.date.accessioned2025-06-20T04:14:19Z
dc.date.issued2024
dc.description.abstractIn the shift from monolithic to microservices architecture within the software development industry, the benefits of improved system resilience, agility, and decentralized data management are clear. Yet, this also introduces significant challenges in maintaining architectural consistency. The decentralized and heterogeneous nature of microservices imposes challenges in managing and maintaining the architecture integrity, which can lead to architectural degradation. This poses maintenance challenges and risks project success. The role of architectural integrity is crucial across the software lifecycle, affecting the development, deployment, and maintenance phases. Inconsistencies within the architecture can confuse the developers and make existing documentation outdated. Moreover, manual or semi-automated checks for architectural conformance are not only time-consuming but also prone to errors, highlighting the need for automated solutions. Recent studies have discovered the need for mechanisms that can proactively address architectural problems in microservices. The findings vouch that software architecture reconstruction is useful for addressing these architectural issues, with static analysis showing significant promise for the reconstruction of software architecture. However, there remains a notable gap in the utilization of languageneutral artifacts for automated reasoning and generating reports about the integrity of microservices architectures. This research presents a novel approach to ensure the consistency of microservice architecture by automating the detection of drifts and erosions. By adopting Model-Driven Engineering principles, which is widely in practice in the industry, our approach uses a textual technique to create a metamodel for each microservice and its communications, achieving technology neutrality. The process begins with a static analysis of the metamodel files and the intended architecture, followed by the construction of service dependency graphs to compare the intended and modified architectures. This systematic approach allows for the accurate identification of deviations, offering a preventive way to address architectural inconsistencies. To assess the effectiveness of this method, we evaluated it using the popular microservices demo application, OnlineBoutique. The findings demonstrate that our approach can precisely identify all microservices within the application and detect violations. These results suggest that our method is not only effective but also efficient in proactively identifying architectural drifts and erosions, contributing significantly to the maintenance of microservices architecture.
dc.identifier.accnoTH5614
dc.identifier.citationJabir, A.Z. (2024). Ensuring microservice architectural consistency through automated detection of drifts and erosions [Master\'s theses, University of Moratuwa]. Institutional Repository University of Moratuwa. https://dl.lib.uom.lk/handle/123/23693
dc.identifier.degreeMSc in Computer Science
dc.identifier.departmentDepartment of Computer Science & Engineering
dc.identifier.facultyEngineering
dc.identifier.urihttps://dl.lib.uom.lk/handle/123/23693
dc.language.isoen
dc.subjectSOFTWARE DEVELOPMENT-Microservice Architecture
dc.subjectSOFTWARE ARCHITECTURE DEGRADATION
dc.subjectSOFTWARE ARCHITECTURE RECONSTRUCTION
dc.subjectSOFTWARE ARCHITECTURE-Conformance Checking
dc.subjectMODEL-DRIVEN ENGINEERING
dc.subjectCOMPUTER SCIENCE AND ENGINEERING-Dissertation
dc.subjectMSc in Computer Science
dc.titleEnsuring microservice architectural consistency through automated detection of drifts and erosions
dc.typeThesis-Abstract

Files

Original bundle

Now showing 1 - 3 of 3
Loading...
Thumbnail Image
Name:
TH5614-1.pdf
Size:
105.75 KB
Format:
Adobe Portable Document Format
Description:
Pre-text
Loading...
Thumbnail Image
Name:
TH5614-2.pdf
Size:
80.75 KB
Format:
Adobe Portable Document Format
Description:
Post-text
Loading...
Thumbnail Image
Name:
TH5614.pdf
Size:
2.53 MB
Format:
Adobe Portable Document Format
Description:
Full-thesis

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: