Developer Voices

Building the SpacetimeDB Database, Game-First (with Tyler Cloutier)

44 snips
Feb 4, 2026
Tyler Cloutier, software engineer and founder of SpacetimeDB and BitCraft, builds a distributed in-memory DB that runs WebAssembly and borrows game architecture for real-time apps. He discusses launch-day failures and rapid fixes. He explains single-threaded L1-first performance, reducer-based hot-swapping, and how TypeScript and React hooks make real-time multiplayer web apps easier.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Load-Test Real UI Paths

  • Test realistic UI behaviors under load because bots often skip UI paths that reveal expensive one-off queries.
  • Add proper indexes and optimizer fixes for infrequent but heavy queries used by UI screens.
INSIGHT

ECS Is A Relational Pattern

  • SpacetimeDB models game entities with an ECS-style relational model: tables per component tied by entity IDs.
  • Misordered joins or missing indexes on large tables (e.g., 20M rows) produce massive scan costs despite in-memory storage.
INSIGHT

Natural Fit For Real-Time Web Apps

  • TypeScript server modules and React hooks map naturally to reducers and tables, enabling true real-time web apps with useTable and useReducer.
  • SpacetimeDB's model aligns closely with React Redux's reducer concept, simplifying front-end integration.
Get the Snipd Podcast app to discover more snips from this episode
Get the app