website/src/content/docs/self-hosting/index.mdx
{/* Mermaid measures each node label's foreignObject width using its default
sans font, but the docs body font (JetBrains Mono) is wider, so the rendered
label overflows the measured foreignObject and its overflow: hidden clips the
text. Forcing the diagram labels back to a normal sans stack makes the rendered
width match Mermaid's measurement so every label fits inside its node box. The
overflow/centering rules are a belt-and-suspenders fallback so any residual
width difference spills symmetrically inside the already-wide node rect instead
of clipping on the right. */}
Self-Host
flowchart LR
subgraph infra["Your Infrastructure"]
direction LR
backend["Your Backend
(Envoy)"]
engine["Rivet Engine"]
storage["Storage"]
backend <--> engine <--> storage
end
classDef envoy fill:#bfdbfe,stroke:#3b82f6,color:#000
classDef engineNode fill:#fed7aa,stroke:#f97316,color:#000
classDef storageNode fill:#fecaca,stroke:#ef4444,color:#000
class backend envoy
class engine engineNode
class storage storageNode
BYOC with Rivet Cloud
flowchart LR
subgraph infra["Your Infrastructure"]
direction LR
backend["Your Backend
(Envoy)"]
end
subgraph cloud["Rivet Cloud"]
direction LR
engine["Rivet Engine"]
storage["Storage"]
engine <--> storage
end
backend <--> engine
classDef envoy fill:#bfdbfe,stroke:#3b82f6,color:#000
classDef engineNode fill:#fed7aa,stroke:#f97316,color:#000
classDef storageNode fill:#fecaca,stroke:#ef4444,color:#000
class backend envoy
class engine engineNode
class storage storageNode
Rivet supports both BYOC (Bring Your Own Cloud) and self-hosting to fit your deployment needs.
| Self-Hosting | BYOC with Rivet Cloud | |
|---|---|---|
| You Manage | Full stack (your backend, engine, Rivet Engine, database) | Only your backend |
| Complexity | Higher (full stack deployment) | Lower (connect and deploy) |
| Cost | Higher operational overhead | Usually lower usage-based cost |
| Supports Serverless | Requires extra infrastructure | Yes |
| Air-Gapped Deployments | Yes | No |
| Best For | Air-gapped environments, strict compliance, custom security policies | All other production deployments |
| Support | Contact sales or community | Community, Slack, and email (varies by plan) |
| Documentation | Continue below | See connect guides |
flowchart LR
backend["Your Backend
(Envoy)"]
engine["Rivet Engine"]
storage["Storage
(PG or FS)"]
backend <--> engine <--> storage
classDef envoy fill:#bfdbfe,stroke:#3b82f6,color:#000
classDef engineNode fill:#fed7aa,stroke:#f97316,color:#000
classDef storageNode fill:#fecaca,stroke:#ef4444,color:#000
class backend envoy
class engine engineNode
class storage storageNode
Rivet has 3 core components:
Rivet supports multiple storage backends:
Deploy Rivet on your preferred platform:
Self-hosting guides coming soon.