State machines,
stored durably.
rstmdb is a database built around states, transitions and guards. Every event is written to a write-ahead log before it's applied — with observability, TLS and Helm deployment included.
- 1041create-instance ord-001 → pendingfsync ok
Everything a stateful workflow needs.
One binary for the engine, the log, the metrics and the transport — so your services stop reinventing status columns.
State machine engine
Model complex workflows with states, transitions and guards — including hierarchical machines.
WAL durability
Write-ahead logging with configurable fsync intervals, so state survives crashes and power loss.
Prometheus metrics
Transition counts, latencies and health exposed in Prometheus format, with a ready Grafana dashboard.
TLS & mTLS
TLS by default, plus mutual TLS for service-to-service authentication.
Official Helm chart
Deploy to Kubernetes with configurable replicas, persistence and monitoring.
Scriptable CLI
Every operation from the terminal — built to drop into scripts and CI pipelines.
Simple to define. Built to scale.
Describe a machine in JSON, register it with the CLI, and run the server in a container. Instances can only move along the transitions you declared.
{
"states": ["pending", "confirmed", "shipped", "delivered", "cancelled"],
"initial": "pending",
"transitions": [
{ "from": "pending", "event": "CONFIRM", "to": "confirmed" },
{ "from": "pending", "event": "CANCEL", "to": "cancelled" },
{ "from": "confirmed", "event": "SHIP", "to": "shipped" },
{ "from": "shipped", "event": "DELIVER", "to": "delivered" }
],
"meta": { "description": "Order fulfillment", "version": "1.0.0" }
}Official clients for six languages.
First-party SDKs, each with a package, source on GitHub and a runnable example.
Running in one command.
Quickest way to try it locally.
docker run -p 7401:7401 rstmdb/rstmdbProduction deployment on Kubernetes.
helm install rstmdb rstmdb/rstmdbBuild from source with Rust.
cargo install rstmdbUsing rstmdb commercially?
BSL 1.1 lets you use rstmdb free for non-commercial work and evaluation. For commercial use, talk to us about a license and enterprise features.
- 01Enterprise supportDedicated support with SLAs.
- 02Custom integrationsHelp fitting rstmdb into your stack.
- 03Volume licensingTerms for larger deployments.