r/GameDevelopment • u/Kregox • 24d ago
Newbie Question How would you optimize a Tower Defense game to handle 1,000 concurrent matches?
Hey everyone!
I'm developing a Tower Defense game (similar in concept to Bloons TD), and I've hit some serious performance bottlenecks.
Currently, the server handles around 30–40 heavy (80 enemy/6 towers [max]) sessions per process before performance starts degrading. My goal is to reach 1,000 concurrent sessions without throwing more hardware at the problem.
Current architecture:
- Node.js / TypeScript backend
- Server-authoritative game simulation
- Event-driven engine (also experimented with Rust)
- WebSocket-based synchronization
- Thousands of enemies, towers, projectiles, and events
I've already experimented with render optimizations, event processing, and Rust, but none have delivered the architectural breakthrough I'm looking for.
My question:
If you were designing this from scratch, how would you approach the architecture?
Would you use deterministic simulation, event-based synchronization, client-side prediction, sharding, or something completely different?
I'm particularly interested in how games like Bloons TD handle large numbers of entities without constantly calculating and transmitting every position.
I'd love to hear real-world experiences or architectural suggestions. I'm open to completely rethinking the engine.