← All presentation pages
Microservice Anti-Pattern Detection Framework
One-page visual summary of the MSc dissertation · Staffordshire University · September 2025

⛔ The problem

SonarQube
works alone
Roslyn
works alone
ArchUnit
works alone

Microservices often suffer from anti-patterns: design mistakes such as services sharing one database or being so tightly linked they must be deployed together. Research has catalogued 58+ of them (Taibi, Lenarduzzi & Pahl, 2020).

↓

💡 The solution

☁️ Cloud-native, serverless-style architecture
Event layer→ Orchestration→ Analysis→ Integration→ Reporting
Multi-tool integration: SonarQube + Roslyn + ArchUnit concepts in one pipeline, with one report.
↓

✓ Results

100%Precision
0 false positives
66.7%Recall
4 of 6 known patterns
80%F1-score
balance of the two
~£0.04per analysis
projected AWS cost

Precision/recall come from a preliminary validation on 2 files with 6 known anti-patterns. The cost is projected from AWS pricing: about £42 a year for 20 analyses a week, compared with £500+ a year for dedicated infrastructure.

Project testedSizePatterns foundTime
gs-spring-boot (Java)15 files2~5 s
spring-petclinic-microservices (Java)42 files4~15 s
sock-shop (Java, Node.js, Go)38 files5~20 s
eShopOnContainers (.NET)67 files6~35 s

Analysis time grew roughly in line with project size, not exponentially.

🎯 Key contributions

Honest limits: simplified tool concepts rather than full SonarQube/Roslyn/ArchUnit API integration; small validation set; Docker doesn't reproduce Lambda cold starts or scaling limits.

The story: Found 3 research gaps → Designed the architecture → Built a working prototype → Tested on 4 real projects → Shared it as open source

Mahyad Mirzabagheri · MSc Software Engineering · Supervisor: Dr Meriem Zouzou