How derpinskv2/graphs-remaster works
Main System Components
a) Web Layer:
• Nginx (Reverse Proxy/Load Balancer)
• ASGI Server (Using Uvicorn as indicated by uvicorn_config.py)
b) Application Core:
• Django API Service
• WebSocket Service
• Celery Worker System
• Authentication System (indicated by core/models.py and CustomUser references)
c) Data Processing:
• CSV Data Processing System (evident from data/raw directory)
• Event Processing System
• Background Tasks
Component Relationships
a) External Connections:
• Client → Nginx
• Nginx → Django API (HTTP/HTTPS)
• Nginx → WebSocket Service (WS/WSS)
b) Internal Connections:
• Django API → Database
• Celery Workers ↔ Message Broker
• WebSocket Consumers ↔ Clients
• Data Processing Tasks → Celery Queue
Specific Implementation Details
a) Services (Rectangles):
• Blue: Django API Service
• Green: WebSocket Service
• Orange: Celery Workers
• Gray: Nginx Proxy
• Database
• Message Broker
• Raw Data Storage (CSV files)
c) Processing Units (Hexagons):
• Data Processing Tasks
• Event Processing
• Background Tasks
Key Architectural Patterns to Highlight
• ASGI-based architecture (config/asgi.py)
• REST API structure (core/api and data/api)
• Event-driven processing (event module)
• Task queue system (Celery)
• WebSocket real-time communication
Important Subsystems
Detail these specific components:
a) Data Processing Pipeline:
• CSV Data Ingestion
• Data Transformation
• Event Generation
b) API Layer:
• Core API Routes
• Data API Routes
• WebSocket Consumers
c) Authentication/Authorization:
• Custom User Model
• Authentication Flow