A Resilient Framework for Detecting and Managing Schema Drift in Evolving Microservice Contracts
Year: 2024
Type: article
Abstract: Microservice architectures have allowed organizations to build scalable and independently deployable software systems as a result of their rapid adoption. The ongoing development of services brings about schema drift, whereby modifications in data formatting, API contracts, and service interfaces cause compatibility issues between interdependent elements. The current methods primarily revolve around the reactive validation and failure detection, and have little ability to predict the possibility of contract evolution risks. The study presents a robust model of schema drift detection and control in changing contracts of microservice predictive control based on machine learning. The secondary data composed of 10,000 records of microservice contract evolutions is processed by using data analytics and machine learning with Python. Preprocessing data, feature engineering, and exploratory analysis are conducted to determine key factors of schema drift. The algorithm of Random Forest and Gradient Boosting are used in order to categorize the risks of schema drift as low-risk, medium-risk, and high-risk. The experimental assessment shows that the accuracy and F1-score of the Random Forest are better, with 91.40% and 91.31%, respectively, which is better than that of the Gradient Boosting. The analysis of feature importance demonstrates that the failure count, compatibility status, and version difference are significant factors causing the occurrence of schema drift. The framework offered is a proactive solution to enhance the success of contracts, minimize compatibility breakdowns, and enable ongoing transformation of distributed microservice systems.
Author: Aiswarya Gurram
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Open Access status: diamond
OpenAlex ID: W7217954153
