Durable state for
serverless functions
State Fabric adds structured, replayable state to your functions. Every state change is logged, every execution can be replayed, and your state survives restarts, scales to millions of operations, and stays consistent across regions.
Built for modern workloads
From AI agents to long-running workflows, State Fabric handles the state that stateless functions can't.
Multi-step AI Agents
Build agents that maintain context across thousands of turns. State Fabric gives your agents memory that survives restarts, scales to millions of operations, and can be replayed for debugging.
Long-running Workflows
Orchestrate workflows that span hours or days. Every step is checkpointed, every state change is auditable, and any step can be replayed or modified mid-flight.
Event Sourcing
Capture every state change as an immutable event. Build read models, enable full audit trails, and replay history to reconstruct state at any point in time.
Distributed Caching
Use State Fabric as a low-latency, consistency-guaranteed cache layer. Reads hit hot data, writes are serialized and replicated, and the cache is always consistent.
Session Management
Store user sessions with millisecond latency and zero eventual consistency issues. Sessions survive server restarts, can be shared across services, and replay enables powerful debugging.
Game State
Build multiplayer games with authoritative server state. Every player action is ordered, every state change is deterministic, and replays let players review any match frame-by-frame.
How it works
Define your state schema
Describe your state as a TypeScript interface. State Fabric handles serialization, validation, and versioning automatically.
Read and write from any function
Use the SDK to read, write, and subscribe to state changes. All operations are atomic and consistency-guaranteed.
Replay when needed
Debug by replaying any execution locally. Reproduce bugs exactly as they happened in production.
Scale infinitely
State Fabric handles sharding, replication, and failover automatically. Your state survives data center fires.
Enterprise-grade capabilities
Hot Cache Tier
Frequently accessed state stays in memory for sub-millisecond reads. Write paths are serialized and durable, but reads hit cache-first.
Deterministic Replay
Replay any execution with bit-for-bit identical results. Debug production issues locally, test edge cases exhaustively, or rebuild state from scratch.
Snapshot Retention
State snapshots are retained from 7 days to 365 days depending on your plan. Point-in-time recovery, audit compliance, and historical analysis all covered.
Event Subscription Streams
Subscribe to state changes in real-time via WebSockets or webhooks. Build reactive UIs, trigger downstream workflows, or stream events to your data warehouse.
Multi-Region Replication
State is replicated across regions for low-latency access globally and resilience against zone outages. Active-active for reads, active-passive for writes.
Immutable Audit Logs
Every state change is logged to an append-only, cryptographically signed audit trail. SOC2 and HIPAA compliant out of the box.
Frequently asked questions
How is State Fabric different from a database?
State Fabric is purpose-built for serverless and AI agent workloads. Unlike a traditional database, every state change is tied to an execution, enabling deterministic replay. Reads are cached in a hot tier for low latency, and the replay model means you never need to write migration scripts for schema changes—you just replay.
Can I use State Fabric with my existing database?
Yes. State Fabric works alongside your existing data layer. Use it for session state, agent memory, workflow checkpoints, and other latency-sensitive state. For persistent storage of record-level data, keep your existing database.
What happens if State Fabric goes down?
State Fabric replicates across multiple availability zones. For Enterprise plans, active-active multi-region replication ensures zero RTO. Your state survives data center failures, and writes are always durably acknowledged before returning.
How does pricing work?
State Fabric is included in all platform plans. Free includes 1 state object, Starter includes 3, Professional includes 10, and Enterprise includes unlimited. Premium add-ons like Hot Cache, Multi-Region Replication, and AI Memory are available as upgrades.
Is State Fabric suitable for financial transactions?
Yes. Enterprise plans include immutable audit logs, multi-region replication, BYOK encryption, and SOC2/HIPAA compliance. The deterministic replay model also provides a complete, auditable history of every state change.
Can I export my state?
Enterprise plans include replay export—dump the full state history to object storage in standard formats. All plans support reading current state via the SDK at any time.
Add state to your functions today
State Fabric is included in every platform plan. Start with the free tier—no credit card required.