SpacetimeDB
Combined database and server for real-time multiplayer apps and games
Pick VPS plan to deploy SpacetimeDB
Renews at Rs.4,099/mo for 2 years. Cancel anytime.
About SpacetimeDB
SpacetimeDB is a radically simplified backend platform that combines a relational database and application server into a single deployable unit. Rather than maintaining a separate API layer between your clients and your data, SpacetimeDB lets clients connect directly to the database and run server-side logic — called "modules" — inside the database process itself. Written in Rust and built on a write-ahead log architecture with in-memory state, it delivers consistent sub-millisecond response times at scale. It powers the entire backend of BitCraft Online, a production MMORPG where all real-time multiplayer state is managed by a single SpacetimeDB instance with no auxiliary services.
Common Use Cases
Game studios use SpacetimeDB as their authoritative multiplayer backend, writing all game logic in Rust or C# and deploying it as a module — replacing an entire tier of game servers, message queues, and databases with a single process. Real-time collaboration tools integrate SpacetimeDB's subscription model to push table-level diffs to all connected clients instantly, without polling or separate WebSocket servers. Startups building stateful web applications use SpacetimeDB to skip the typical Node/Python API layer entirely, writing permission and business logic directly in the module and connecting their TypeScript or C# frontend client via the official SDKs. IoT and live analytics platforms use SpacetimeDB's goroutine-scale concurrency and WebSocket subscriptions to fan out sensor or event data to thousands of subscribers with consistent low latency.
Key Features
- Unified database and server — no separate API layer, reverse proxy, or message broker needed
- Real-time client subscriptions with automatic delta synchronization on table changes
- Module support in Rust and C# for server-side application logic inside the database
- In-memory state with write-ahead log persistence for fast recovery
- HTTP and WebSocket API served on a single port for simple firewall and proxy configuration
- Official client SDKs for Rust, C#, and TypeScript
- Built-in access control and authorization logic within modules
- Healthcheck endpoint at /v1/ping for monitoring and load balancer integration
- Proven in production powering BitCraft Online's full MMORPG backend
Why deploy SpacetimeDB on Hostinger VPS
SpacetimeDB's in-memory architecture means CPU and RAM are the primary performance levers — dedicated VPS resources ensure your application state never competes with noisy neighbors. A single Hostinger VPS can replace an entire stack of managed services (database, API server, WebSocket server, message queue), dramatically reducing both infrastructure cost and operational complexity. All application data, module code, and the write-ahead log are stored on your VPS volume, giving you complete data sovereignty with no vendor lock-in and straightforward backup via volume snapshots. The single-port HTTP/WebSocket design works naturally with the pre-installed Traefik reverse proxy for automatic HTTPS, and the /v1/ping healthcheck enables reliable uptime monitoring from day one.
Pick VPS plan to deploy SpacetimeDB
Renews at Rs.4,099/mo for 2 years. Cancel anytime.