How quannh-netalik/elsa-coding-challenge works
Main Components Identification
The system consists of three primary domains:
• Customer Domain (Auth & User Services)
• Quiz Domain (Content, Session, and Socket Services)
• Infrastructure Domain (Logger Service)
Detailed Component Representation
a) Customer Domain:
[Auth Service (8060)]
• Authentication logic
• Session management
• Token verification
[User Service]
• User management
• Profile handling
b) Quiz Domain:
[Quiz Content Service]
• Question management
• Quiz data storage
[Quiz Session Service]
• Session management
• Game state handling
[Quiz Session Socket]
• Real-time communication
• Player synchronization
c) Infrastructure:
[Logger Service]
• Centralized logging
• Correlation ID tracking
Integration Points
• SDK integration between services (packages folder)
• Authentication flow
• Session creation/joining flow
• Real-time communication paths
Additional Elements
Include:
• API Gateway (entry point)
• Load Balancers
• Redis Clusters
• MongoDB Replicas
• Correlation ID flow
Specific Implementation Details
Show:
• Port numbers for each service
• Environment configurations
• Security layers (API keys)
• Monitoring points
Logging flow
• High-level architecture visibility
• Detailed implementation specifics
• Clear service boundaries
• Communication patterns
Remember to emphasize:
• Scalability points
• Security checkpoints
• Monitoring points
• Failure recovery paths