Cloud-Native Detection of Microservice Anti-Patterns

Using static analysis tools and serverless architectures

MSc Software Engineering dissertation · Mahyad Mirzabagheri · Staffordshire University, 2025 · Source code

Microservice systems often contain anti-patterns: design mistakes such as services sharing one database or depending on each other so tightly that they must be deployed together. This project combines the ideas of three analysis tools (SonarQube, Roslyn and ArchUnit) in one cloud-native pipeline that finds these problems, merges duplicate findings and produces a single report. The serverless AWS design was prototyped locally with Docker and tested on four open-source projects.
1

Viva presentation

The 7-slide deck: research gap, architecture, multi-tool integration, implementation, results and conclusions.

Open slides →
2

One-page summary

Problem → solution → results on a single page. Good for a quick read or printing.

Open summary →
3

Architecture demo

System design, the 8 Docker containers, the detection flow, results, code structure, and the frontend & backend with screenshots.

Open demo →
4

Semantic similarity explained

How duplicate findings from different tools are matched by their wording, with a real worked example and runnable Python code.

Open explainer →

The prototype running

Dashboard showing spring-petclinic resultsspring-petclinic: 4 anti-patterns Dashboard showing sock-shop resultssock-shop: 5 anti-patterns
100%precision
66.7%recall
80%F1-score
4real projects tested
~£0.04per analysis (projected)