rivet-dev/rivet
Rivet Actors are the primitive for stateful workloads. Built for AI agents, collaborative apps, and durable execution.
What it solves
Rivet provides a high-density, scalable orchestration layer specifically designed for agentic workloads. It solves the problem of managing thousands or millions of stateful, long-lived AI agents that require durable memory, independent storage, and fast startup times without the overhead of traditional container orchestration like Kubernetes.
How it works
Rivet uses a "virtual actor" pattern where agents are treated as Actors—lightweight, durable processes. Unlike pods, Actors live inside existing worker processes (Node.js, Bun, or Rust) rather than in separate VMs or containers.
Key technical mechanisms include:
- Durable State: Each Actor has its own SQLite database or POSIX filesystem, tiered to S3 for long-term storage.
- Hibernation: Idle Actors release resources and hibernate, waking up in approximately 12ms when a new request arrives.
- Control Plane: A single Rust-based control plane handles the scheduling, routing, and persistence of Actors across a cluster.
- Connectivity: Actors can be addressed directly via HTTP or WebSockets, allowing for real-time event broadcasting to clients.
Who it’s for
- AI Agent Developers: Those building coding agents, personal assistants, or company-specific agents that need long-term memory and durable state.
- Agent App Builders: Developers creating platforms where every user gets their own dedicated, scalable backend (Actor).
- Real-time Application Developers: Those building collaborative tools (e.g., rooms or channels) that the same architecture can support.
Highlights
- Extreme Efficiency: 12ms cold starts and only 72KB of memory per instance.
- Built-in Persistence: Integrated SQLite and filesystem support per Actor.
- Flexible Deployment: Open-source and self-hostable (Apache 2.0), with options for managed cloud or BYOC (Bring Your Own Cloud).
- Developer Experience: Typed SDKs for backend and first-party React hooks for the frontend.
- Fault Tolerance: Automatic rescheduling of Actors to other workers if a worker fails, maintaining state integrity.
Related
- Project
- Project
- Project
- Project
- Project