Tournament Types
The Tournament Platform supports two distinct tournament formats, each optimized for different gameplay scenarios and user experiences. Both formats share common functionality for player management, gameplay, and results processing, but differ in their creation and start logic.Format Comparison
| Feature | Scheduled Tournaments | Hop-On/Off Tournaments |
|---|---|---|
| Creation | Casino System creates via external API | Game Platform creates on-demand via internal API |
| Start Trigger | Specific scheduled time | Minimum player count reached |
| Registration | Pre-registration before start time | Lobby-based, then buy-in via Casino System |
| Player Flow | Standard registration → wait → tournament starts | Join lobby → buy-in → tournament starts when threshold met |
| Late Joiners | Registration closes at scheduled time | Creates new tournament automatically |
| Refunds | Standard tournament cancellation policy | Full refunds if player leaves before start |
Common Shared Functionality
Both tournament types utilize identical systems for:Player Registration & Authentication
JWT token generation, player validation, and session management.
Game Platform Configuration
Tournament config delivery and status synchronization.
Real-time Gameplay
Room connections, postMessage events, and SQS reporting.
Tournament Completion
Results calculation, prize distribution, and cleanup.
Tournament Lifecycle
Shared Components (Both Formats)
- Player Registration & Authentication → Standard external APIs for player management
- Game Platform Configuration Exchange → Internal APIs for game setup and status
- Tournament Gameplay & Event Reporting → SQS events and postMessage communication
- Player Management → Rebuy and player leaving functionality
- Tournament Completion → Result calculation and cleanup
Format-Specific Components
- Scheduled Tournaments
- Hop-On/Off Tournaments
Format-Specific Flow:
- Casino System creates tournament with specific
startTime - Tournament System schedules start job or starts immediately
- Players register in advance using standard APIs
- Tournament starts automatically at scheduled time
- Shared gameplay flow takes over from this point
Integration Architecture
The Tournament Platform uses a shared common flow architecture to eliminate code duplication while supporting format-specific requirements.
Communication Patterns
- Casino System ↔ Tournament System: Standard external APIs with operator authentication
- Tournament System ↔ Game Platform: Internal APIs for configuration and control
- Game Platform ↔ Casino UI: postMessage events for real-time updates
- Tournament System → Casino System: SQS events for notifications
API Usage by Format
Scheduled Tournaments
- Creation:
POST /api/tournaments(Casino System) - Start Logic: Time-based automatic start
- APIs: 100% existing external API endpoints
Hop-On/Off Tournaments
- Creation:
POST /internal/tournaments(Game Platform) - Start Logic: Player-count based automatic start
- New APIs: Tournament creation and refund logic
- Shared APIs: All gameplay, events, and management

