This project focuses on detecting performance bottlenecks in distributed backend services using LinkedIn as a case study.
Modern platforms like LinkedIn rely on multiple backend services such as:
- Feed Service
- Profile Service
- Recommendation Engine
- Database Layer
- Cache Layer
If any one of these services becomes slow, the overall response time of the application increases.
This project simulates such backend services and automatically identifies the bottleneck using performance metrics like:
- latency
- CPU usage
- memory usage
- response time
To design a backend system that can monitor service performance and automatically detect bottlenecks in a distributed architecture similar to LinkedIn.
- Simulate backend services
- Measure service latency
- Detect slow services
- Log performance metrics
- Analyze root cause of delays
- Build an AI-based anomaly detection system
- Python
- Flask / FastAPI
- psutil
- pandas
- scikit-learn
- CSV / SQLite
linkedin-bottleneck-detector/
│
├── app/
│ ├── main.py
│ ├── services.py
│ ├── monitor.py
│ ├── detector.py
│ ├── logger.py
│ └── database.py
│
├── data/
│ └── performance_logs.csv
│
├── requirements.txt
└── README.md
<img width="1384" height="643" alt="Screenshot 2026-04-08 124947" src="https://github.com/user-attachments/assets/db090cc4-34c9-4dc3-b10d-b97fbb4f888f" />