How velopert/velog works
High-Level Architecture Components
a) Frontend Layer (velog-frontend):
• React Application
• Redux Store
• Router System
• Component Library
• API Client
b) Backend Layer (velog-backend):
• API Server (Node.js/Koa)
• Database Models
• Authentication System
• File Handling
• Raw Query Handlers
c) SSR Layer (velog-ssr):
• Server-Side Rendering Service
• Redis Cache
• Route Handlers
Infrastructure Components
AWS services as shown in the architecture image:
• AWS Lambda (for API and SSR)
• Database (CockroachDB)
• Redis Cache
• Content Delivery Network
• Storage Service (for images/assets)
Component Relationships
a) Data Flow:
• Client → API Gateway → Lambda Functions
• SSR Requests → Lambda → Redis Cache
• API Requests → Database
• File Uploads → Storage Service
b) Authentication Flow:
• Social Login Integration
• Token Management
• Session Handling
Detailed Subsystems
a) Post Management:
• Editor System
• Markdown Processing
• Image Upload
• Categories/Tags
b) User System:
• Authentication
• Profiles
• Following System
c) Search & Discovery:
• Search Engine
• Trending Posts
• Tag-based Navigation
Additional Details
Technical aspects:
• Redux store structure
• Database schema relationships
• Cache invalidation flows
• API endpoints grouping
• Security layers