Skip to content

Game Service Example

Comprehensive example demonstrating ALL library features in a game service context.

Source Code

View on GitHub

Running

bash
bun run examples/game-service.ts

Features Demonstrated

  • Multiple interconnected pools (games, accounts, servers, sessions)
  • Complex matchmaking logic
  • Event-driven architecture
  • Pool of pools for regional organization
  • Weighted server selection
  • Statistics and analytics
  • Real-world usage patterns

This is the most comprehensive example showing how all library features work together in a realistic application.

See the source code for the complete implementation.