Marketplace
game-servers
Game server architecture, scalability, matchmaking, and backend systems for online games. Build robust, scalable multiplayer infrastructure.
$ Instalar
git clone https://github.com/pluginagentmarketplace/custom-plugin-game-developer /tmp/custom-plugin-game-developer && cp -r /tmp/custom-plugin-game-developer/skills/game-servers ~/.claude/skills/custom-plugin-game-developer// tip: Run this command in your terminal to install the skill
SKILL.md
name: game-servers version: "2.0.0" description: | Game server architecture, scalability, matchmaking, and backend systems for online games. Build robust, scalable multiplayer infrastructure. sasmp_version: "1.3.0" bonded_agent: 05-networking-multiplayer bond_type: SECONDARY_BOND
parameters:
- name: architecture type: string required: false validation: enum: [dedicated, listen, relay, hybrid]
- name: scale type: string required: false validation: enum: [small, medium, large, massive]
retry_policy: enabled: true max_attempts: 5 backoff: exponential jitter: true
observability: log_events: [start, complete, error, scale_event] metrics: [player_count, server_count, match_time, queue_time]
Game Servers
Server Architecture Patterns
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SERVER ARCHITECTURES โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ DEDICATED SERVER: โ
โ โข Server runs game simulation โ
โ โข Clients send inputs, receive state โ
โ โข Best security and consistency โ
โ โข Higher infrastructure cost โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ LISTEN SERVER: โ
โ โข One player hosts the game โ
โ โข Free infrastructure โ
โ โข Host has advantage (no latency) โ
โ โข Session ends if host leaves โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ RELAY SERVER: โ
โ โข Routes packets between peers โ
โ โข No game logic on server โ
โ โข Good for P2P with NAT traversal โ
โ โข Less secure than dedicated โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Scalable Architecture
SCALABLE GAME BACKEND:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GLOBAL LOAD BALANCER โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ GATEWAY SERVERS โ
โ Authentication, Routing, Rate Limiting โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ MATCHMAKING โ โ LOBBY โ โ SOCIAL โ โ
โ โ SERVICE โ โ SERVICE โ โ SERVICE โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ GAME SERVER ORCHESTRATOR โ
โ (Spawns/despawns based on demand) โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ GAME SERVERS (Regional, Auto-scaled) โ โ
โ โ [US-East] [US-West] [EU-West] [Asia] [Oceania] โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ DATABASE CLUSTER โ
โ [Player Profiles] [Leaderboards] [Match History] [Items] โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Matchmaking System
MATCHMAKING FLOW:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. QUEUE: Player enters matchmaking queue โ
โ โ Store: skill rating, region, preferences โ
โ โ
โ 2. SEARCH: Find compatible players โ
โ โ Same region (or expand after timeout) โ
โ โ Similar skill (ยฑ100 MMR, expand over time) โ
โ โ Compatible party sizes โ
โ โ
โ 3. MATCH: Form teams when criteria met โ
โ โ Balance teams by total MMR โ
โ โ Check for premade groups โ
โ โ
โ 4. PROVISION: Request game server โ
โ โ Orchestrator spawns or assigns server โ
โ โ Wait for server ready โ
โ โ
โ 5. CONNECT: Send connection info to all players โ
โ โ IP:Port or relay token โ
โ โ Timeout if player doesn't connect โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Player Data Management
// โ
Production-Ready: Player Session
public class PlayerSession
{
public string PlayerId { get; }
public string SessionToken { get; }
public DateTime CreatedAt { get; }
public DateTime LastActivity { get; private set; }
private readonly IDatabase _db;
private readonly ICache _cache;
public async Task<PlayerProfile> GetProfile()
{
// Try cache first
var cached = await _cache.GetAsync<PlayerProfile>($"profile:{PlayerId}");
if (cached != null)
{
return cached;
}
// Fall back to database
var profile = await _db.GetPlayerProfile(PlayerId);
// Cache for 5 minutes
await _cache.SetAsync($"profile:{PlayerId}", profile, TimeSpan.FromMinutes(5));
return profile;
}
public async Task UpdateStats(MatchResult result)
{
LastActivity = DateTime.UtcNow;
// Update in database
await _db.UpdatePlayerStats(PlayerId, result);
// Invalidate cache
await _cache.DeleteAsync($"profile:{PlayerId}");
}
}
Auto-Scaling Strategy
SCALING TRIGGERS:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SCALE UP when: โ
โ โข Queue time > 60 seconds โ
โ โข Server utilization > 70% โ
โ โข Approaching peak hours โ
โ โ
โ SCALE DOWN when: โ
โ โข Server utilization < 30% for 15+ minutes โ
โ โข Off-peak hours โ
โ โข Allow graceful drain (don't kill active matches) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ PRE-WARMING: โ
โ โข Spin up servers before expected peak โ
โ โข Use historical data to predict demand โ
โ โข Keep warm pool for instant availability โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ง Troubleshooting
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PROBLEM: Long matchmaking times โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ SOLUTIONS: โ
โ โ Expand skill range over time โ
โ โ Allow cross-region matching โ
โ โ Reduce minimum player count โ
โ โ Add bots to fill partial matches โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PROBLEM: Server crashes during peak โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ SOLUTIONS: โ
โ โ Pre-warm servers before peak โ
โ โ Increase max server instances โ
โ โ Add circuit breakers โ
โ โ Implement graceful degradation โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PROBLEM: Database bottleneck โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ SOLUTIONS: โ
โ โ Add caching layer (Redis) โ
โ โ Use read replicas โ
โ โ Shard by player ID โ
โ โ Queue non-critical writes โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Infrastructure Costs
| Scale | Players | Servers | Monthly Cost |
|---|---|---|---|
| Small | 1K CCU | 10 | $500-1K |
| Medium | 10K CCU | 100 | $5K-10K |
| Large | 100K CCU | 1000 | $50K-100K |
| Massive | 1M+ CCU | 10000+ | $500K+ |
Use this skill: When building online backends, scaling systems, or implementing matchmaking.
Repository

pluginagentmarketplace
Author
pluginagentmarketplace/custom-plugin-game-developer/skills/game-servers
1
Stars
0
Forks
Updated1d ago
Added1w ago