How lunartown/dgrr works
Main Components
a. Client-Side (Frontend):
• React/TypeScript Application Layer
• WebSocket/STOMP Client
• OpenVidu Client (Video Streaming)
• User Interface Components (Game, Profile, Auth)
b. Server-Side Components:
• Spring Boot Backend Server
• Python FastAPI Server (Emotion Analysis)
• WebSocket/STOMP Server
• OpenVidu Server
• Security Layer (JWT, OAuth)
c. External Services:
• Kakao OAuth Service
• AWS S3 (File Storage)
• MariaDB Database
Component Relationships
• Frontend ↔️ Spring Backend (REST APIs)
• Frontend ↔️ WebSocket Server (Real-time game state)
• Frontend ↔️ OpenVidu Server (Video streaming)
• Spring Backend ↔️ Python Backend (Emotion analysis)
• Spring Backend ↔️ MariaDB (Data persistence)
• Spring Backend ↔️ AWS S3 (File storage)
Key Architectural Patterns to Highlight
a. Domain-Driven Design:
• Clear separation of domains (battle, game, member, rating)
• Domain services, repositories, and entities
b. Microservices Architecture:
• Java Spring Backend (Main service)
• Python FastAPI (ML/AI service)
• OpenVidu (Video streaming service)
Data Flow Visualization
Flow for key processes:
Additional Elements
Include:
• Load balancers
• Docker containers
• Jenkins CI/CD pipeline
• Security layers (JWT, Spring Security)
• WebSocket connections
• REST API endpoints
Specific Implementation Details
Specialized components:
• Game state management
• Real-time video processing
• Emotion analysis pipeline
• Rating system
• Battle management