What problem does it solve?
This Skill helps you structure and implement distributed game server logic using Microsoft Orleans so that game state, sessions, and real-time updates scale reliably across processes.
Core Features & Use Cases
- Virtual Actor (Grain) Architecture: Model players, rooms, and matches as single-threaded grains with clear grain interfaces and implementations.
- Persistence for Game State: Persist grain state with Orleans persistence patterns (e.g.,
IPersistentState, explicit WriteStateAsync after mutations).
- Real-Time Communication with Streams: Publish and subscribe to real-time updates (e.g., room updates) using Orleans Streams.
- Silo Configuration Guidance: Configure clustering and storage backends (e.g., memory for dev, Azure storage for production) and enable the Orleans dashboard.
- Example-Driven Game Session Design: Provide a concrete blueprint for player lifecycle, room broadcasting, and match/leaderboard style grain organization via DTOs and state models.
Quick Start
Tell the AI to generate an Orleans-based distributed server design that uses one grain per player and one grain per room, including persistent state and Orleans Streams for broadcasting updates.