How tpals0409/algosu works
AlgoSu is an algorithm-study management service: members organize studies and problems, submit code, then track asynchronous GitHub persistence and AI analysis to review results. The map follows the documented frontend-to-Gateway boundary and the submission Saga’s background workflow, including status notifications. It also preserves study, problem, review, and identity capabilities. README architecture statements support the service and infrastructure links; sampled source excerpts further verify Saga publishing, review proxying, and AI service calls. Other frontend and service internals are represented at their documented subsystem paths.
Main entry points: src API Gateway · app Next.js App · submission.service.ts Submission Service · saga-orchestrator.service.ts Submission Saga
Components 21
Product UI
- Next.js App
frontend/src/app - Study Workspace
frontend/src/app/[locale]/studies - Submission Views
frontend/src/app/[locale]/submit - Review Views
frontend/src/app/[locale]/reviews
API Gateway
- API Gateway
services/gateway/src - OAuth and Sessions
services/gateway/src/auth/oauth/oauth.service.ts
Domain Services
- Identity and Studies
services/identity/src - Problem Management
services/problem/src/problem/problem.service.ts - Submission Service
services/submission/src/submission/submission.service.ts - Code Reviews
services/submission/src/review/review.service.ts
Async Processing
- Submission Saga
services/submission/src/saga/saga-orchestrator.service.ts - GitHub Worker
services/github-worker/src/worker.ts - AI Analysis
services/ai-analysis/src/main.py
Data and Events
- RabbitMQ
- Identity DB
- Problem DB
- Submission DB
- Redis Status
Other components
- Study Member
- GitHub
- Claude API
Connections 28
- Study Member → Next.js App: uses
README.md - Next.js App → API Gateway: calls API
README.md - Next.js App → Study Workspace: opens
- Next.js App → Submission Views: opens
- Next.js App → Review Views: opens
- API Gateway → OAuth and Sessions: handles login
services/gateway/src/auth/oauth/oauth.service.ts - API Gateway → Identity and Studies: routes requests
README.md - API Gateway → Problem Management: routes requests
README.md - API Gateway → Submission Service: routes requests
README.md - API Gateway → Code Reviews: proxies reviews
services/gateway/src/review/review.controller.ts - API Gateway → Redis Status: reads events
README.md - Identity and Studies → Identity DB: stores data
README.md - Problem Management → Problem DB: stores data
README.md - Submission Service → Submission DB: stores submissions
README.md - Submission Service → Submission Saga: starts workflow
- Submission Saga → RabbitMQ: publishes jobs
services/submission/src/saga/saga-orchestrator.service.ts - RabbitMQ → GitHub Worker: dispatches jobs
README.md - RabbitMQ → AI Analysis: dispatches jobs
README.md - GitHub Worker → GitHub: commits code
README.md - AI Analysis → Claude API: requests analysis
README.md - AI Analysis → Submission Service: fetches submissions
services/ai-analysis/src/main.py - Submission Saga → Redis Status: updates status
README.md - Redis Status → API Gateway: streams events
README.md - API Gateway → Next.js App: sends SSE
README.md - Code Reviews → Submission DB: reads submissions
services/submission/src/review/review.service.ts - Study Workspace → API Gateway: loads study data
- Submission Views → API Gateway: submits code
- Review Views → API Gateway: loads reviews