Guides
End-to-end guides for building with Rivet Actors.
Architecture
Guides
Build an AI agent backend with persistent memory: one Rivet Actor per conversation, queued message handling, and streaming LLM responses as realtime events.
Chat RoomBuild a realtime chat room backend with Rivet Actors: one actor per room, SQLite-backed message history, and WebSocket broadcast to every connected client.
Collaborative Text EditorBuild a collaborative text editor backend with Yjs CRDTs and Rivet Actors: per-document actors relay sync and awareness updates and persist snapshots.
Cron Jobs and Scheduled TasksPatterns for durable one-shot, calendar, and fixed-interval work on Rivet Actors.
Database per TenantMulti-tenant data isolation with one Rivet Actor per tenant: the actor key is the tenant id, so each tenant gets its own isolated dataset and migrations.
Live Cursors and PresenceLive cursors and multiplayer presence with Rivet Actors: per-connection cursor state, realtime updates over events or raw WebSockets, and throttling.
Multiplayer GamePragmatic patterns for building multiplayer games: matchmaking, tick loops, realtime state, interest management, and validation.