Layer 3 · self-hosting reality check
What it actually takes to self-host SurrealDB
The docs say 512 MB. In practice you want 4 GB. Here is the honest version — real requirements, real monthly cost, what you will be maintaining, and the one thing that catches people out.
Usually reached from MongoDB Atlas alternatives, where SurrealDB is one of the picks.
| RAM — documented minimum | 512 MB |
|---|---|
| RAM — what it really needs | 4 GB |
| CPU | 2 vCPU |
| Disk | Depends on the backend — RocksDB locally, or TiKV distributed |
| Monthly cost | $18–40/mo for a single node |
| Setup time | 1 hour |
| How you install it | single Rust binary; runs embedded, single-node, or distributed on TiKV |
| Ongoing maintenance | Moderate, and version churn is the real cost. |
| Where it stops scaling | A single node handles a great deal. Distributed mode on TiKV is a substantially larger commitment. |
The thing that catches people out
It is young and the API has broken between releases more than once, including query syntax. Pin the exact version, read migration notes for every bump, and never assume a minor version is safe. That is the honest cost of adopting something genuinely new — worth paying deliberately, painful when discovered in production.
When not to self-host SurrealDB
You need a boring database. Postgres does most of what people reach for SurrealDB to do, with twenty-five years of operational knowledge behind it.
Every guide here carries this section. A site that only ever tells you to self-host is selling something — the useful answer is sometimes no.
Other Layer 3 self-hosting guides
Common questions
- How much RAM does SurrealDB actually need?
- 4 GB in practice. The documented minimum is 512 MB, which is the figure at which the process starts rather than the figure at which it works under real use. 2 vCPU alongside it.
- What does self-hosting SurrealDB cost per month?
- $18–40/mo for a single node This is commodity VPS pricing and excludes your time, which is the larger cost for most people — budget for moderate, and version churn is the real cost.
- How long does it take to set up SurrealDB?
- 1 hour, via single Rust binary; runs embedded, single-node, or distributed on TiKV.
- When should I NOT self-host SurrealDB?
- You need a boring database. Postgres does most of what people reach for SurrealDB to do, with twenty-five years of operational knowledge behind it.
- What is the most common mistake when self-hosting SurrealDB?
- It is young and the API has broken between releases more than once, including query syntax. Pin the exact version, read migration notes for every bump, and never assume a minor version is safe. That is the honest cost of adopting something genuinely new — worth paying deliberately, painful when discovered in production.