How locnguyensgu/calligo works
Main System Components Identification
The project is a microservices architecture with the following key services:
• API Gateway Service
• Discovery Service (Eureka)
• User Service
• Chat Service
• Friend Service
• Notification Service
• Common Service
Specific Component Details
API Gateway:
• Security filter chain
• Routing paths to microservices
• Authentication/authorization flow
User Service:
• Account management
• Security components (JWT)
• Role-based access control
• Refresh token management
Chat Service:
• WebSocket connections
• Real-time message handling
• Different chat types (1-1, group)
• Message status tracking
• Media handling components
Friend Service:
• Friend request management
• Relationship tracking
• Status management
Notification Service:
• Kafka consumer setup
• Real-time notification dispatch
• Event handling system
Connection Types
• Double lines: WebSocket connections
Additional Elements
Include:
• Database symbols for each service's persistence layer
• Load balancer symbol at the gateway
• Kafka topics for async communication
• WebSocket endpoints for real-time features
• Security tokens flow
• Service discovery registration/lookup paths
Specific Implementation Details
Show:
• WebSocket configuration for chat
• Kafka integration for notifications
• JWT token flow through API Gateway
• Friend request state machine
• Message delivery status tracking
• File storage for media content