Optimizations II: Reconnects, Edge Caching & Polish
Handling thundering herds, passive mode for alt-tabbed clients, and edge caching strategies. The final 20% of performance gains.
Technical writing on distributed systems, architecture decisions, and engineering practice.
Handling thundering herds, passive mode for alt-tabbed clients, and edge caching strategies. The final 20% of performance gains.
Why we chose Protobuf over FlatBuffers, heartbeat coalescing, and Zstandard compression. The wire format decisions that saved 40% bandwidth.
How the world dynamically expands and contracts based on player distribution. The garbage collection model for tile processors and preemptive neighbor spawning.
Command validation, intent collection, and the 500ms tick budget. How client actions flow into tile processors and get validated before execution.
Case study of tile processor sharding, backpressure, and delivery guarantees. How Redis sharded pub/sub enables viewport-relevant event delivery.
Node failure detection and cluster membership at 10,000 players. How SWIM gossip protocol enables scalable failure detection without centralized coordination.
Problem framing: why naive fan-out breaks at scale. An overview of the Black Skies distributed architecture and the constraints that shaped our design decisions.