1000x Faster Than Your Database??? SpacetimeDB Explained by Creator Tyler C.
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Tyler Cloutier, creator of SpacetimeDB at Clockwork Labs, explains the architecture and performance characteristics of SpacetimeDB, a database originally built to power the MMO BitCraft Online. Key technical insights include: transactions execute inside the database (eliminating network hops), a thread-per-core model keeps data in L1 CPU cache, and interactive transactions are traded away for extreme throughput. Benchmarks show 4,000 TPS with Node+Postgres vs 104,000 TPS with SpacetimeDB (TypeScript reducers) and 167,000 TPS with Rust reducers. The conversation covers the database's real-time subscription model (streaming query derivatives to clients), ACID durability guarantees via pipelined async disk writes, the new SpacetimeAuth OIDC system in v2.0, and honest limitations including no interactive transactions, incomplete Postgres compatibility, and single-node write architecture. Tyler also responds to criticism from Vicent Marti, clarifying that the alleged data-loss issue was based on a misreading of the codebase.
•1h 1m watch time
1 Comment
Sort: