Background: The growing deployment of artificial intelligence models through cloud-native microservices has increased the energy consumption, resource demand, and operational cost of production software. However, sustainability is rarely incorporated into continuous integration and continuous delivery pipelines as a measurable software-quality attribute. Aims: This study aims to design and evaluate a Green DevOps framework that enables development and operations teams to measure, compare, and improve the sustainability of AI-enabled microservices. Methods: The framework integrates energy consumption, estimated operational carbon emissions, CPU and memory utilization, storage activity, cloud expenditure, latency, reliability, and predictive performance into CI/CD and runtime-observability processes. A controlled prototype evaluation examined four deployment configurations using a containerized document-classification service. Result: Compared with the static baseline, the optimized configuration reduced estimated energy consumption and operational carbon intensity by 57.1%, CPU consumption by 50.0%, and cloud cost per 1,000 successful requests by 51.2%. It improved p95 latency from 145 to 115 ms and throughput from 100 to 109 requests/s; macro-F1 changed from 0.918 to 0.914. Conclusion: Coordinated optimization of scaling, orchestration, caching, and model precision can improve environmental and economic efficiency without materially compromising service quality, while CI/CD sustainability gates can make this evidence actionable.
Copyrights © 2026