How aanchal2208/concurrent-hub- works
ConcurrentHub is a collaborative task-management web application. Users register or sign in, then browse, create, update, and delete tasks; updates carry a version so conflicting edits can be rejected, while per-task scheduling and reusable buffers support concurrent work. Successful task changes are persisted in PostgreSQL, recorded in the activity log, and broadcast to connected browsers. The map includes authentication, health/metrics, and live updates as supporting capabilities. Relationships reflect the README and shown source references; unsampled route and scheduler internals are not expanded beyond documented behavior.
Main entry points: services.py Task service · main.py FastAPI application · routes.py HTTP routes · app.js Task interface
Components 18
Browser client
- Task interface
frontend/app.js
API and identity
- FastAPI application
backend/main.py - HTTP routes
backend/routes.py - API models
backend/schemas.py - Authentication
backend/auth.py
Task processing
- Task service
backend/services.py - Per-task scheduler
Scheduler/scheduler.py - Conflict checks
Scheduler/conflict_detector - Version checks
Scheduler/version_check.py - Reusable buffer pool
resource_pool/object_pool.py
Persistence
- Task repository
database/repository.py - PostgreSQL pool
database/postgres_db.py - PostgreSQL
- Database schema
database/schema.sql
Live updates
- Connection manager
realtime/connection_manager.py - Task event builders
realtime/events.py - WebSocket endpoint
realtime/websocket_server.py
Other components
- Collaborator
Connections 22
- Collaborator → Task interface: uses
README.md - Task interface → FastAPI application: calls API
README.md - Task interface → WebSocket endpoint: connects live
README.md - FastAPI application → HTTP routes: mounts routes
backend/main.py - HTTP routes → API models: validates data
backend/routes.py - HTTP routes → Authentication: authenticates
backend/routes.py - HTTP routes → Task service: delegates tasks
backend/routes.py - FastAPI application → Task service: configures
backend/main.py - Task service → Per-task scheduler: schedules updates
README.md - Task service → Reusable buffer pool: leases buffers
README.md - Task service → Task repository: reads and writes
README.md - Per-task scheduler → Conflict checks: checks conflicts
- Per-task scheduler → Version checks: checks versions
- Task repository → PostgreSQL pool: borrows connections
database/repository.py - PostgreSQL pool → PostgreSQL: queries
README.md - PostgreSQL → Database schema: stores tables
README.md - Authentication → PostgreSQL pool: uses database pool
backend/auth.py - Task service → Task event builders: builds broadcasts
backend/services.py - Task service → Connection manager: broadcasts updates
backend/services.py - FastAPI application → WebSocket endpoint: registers endpoint
backend/main.py - WebSocket endpoint → Connection manager: manages connections
realtime/websocket_server.py - Connection manager → Task interface: sends events
README.md