This task can be performed using SpacetimeDB
Real-time backend and database, built directly from your code
Best product for this task
SpacetimeDB
dev-tools
SpacetimeDB is a real-time backend framework and database that embeds server logic directly into the datastore for ultra-fast, synchronized experiences. Developers build interactive apps and multiplayer games in TypeScript, C#, C++, or Rust with automatic client updates and high-throughput transactions.

What to expect from an ideal product
- SpacetimeDB automatically pushes database changes to all connected clients instantly, removing the need to write manual synchronization code between players
- The database runs your game logic directly inside it, which cuts out network delays and keeps all players perfectly in sync without extra round trips
- Built-in subscription system lets clients automatically receive only the data they need, so players see updates for nearby objects without getting overwhelmed by the entire game state
- Handles player connections and disconnections seamlessly while maintaining consistent game state across all remaining players
- Provides conflict-free updates through built-in transaction handling, so multiple players can interact with the same game objects without causing data corruption or desync issues
