ONE ENGINE, TWO WAYS TO SCALE
SurrealDB 4 is the engine. SurrealDB Earth runs it serverless across Cloudflare, one isolated database per agent. SurrealDS runs it on clusters over object storage, with each write confirmed in two zones.
SurrealDB 4
Indexed queries are projected at 22x faster than in 3.x. Full-table scans are 2.3x faster, and creates, reads, updates and deletes 42% faster, as measured with crud-bench on the same hardware.
22x faster
SurrealDB Earth
The SurrealDB 4 engine, serverless on Cloudflare, with thousands of isolated instances. Earth handles 10+ billion peak rows per second, fully transactional.
10+ billion
SurrealDS
The SurrealDB 4 engine on distributed storage over object storage, in SurrealDB Cloud multi-node clusters and Enterprise Edition. With the default two-zone policy, writes are acknowledged only after being stored on disks in both zones.
Two zones
RELIABILITY
Compute is replaceable. Data stays durable. SurrealDS copies each write across failure domains before confirming it, and a new node recovers from the surviving copy. SurrealDB 4 adds 240+ fixes over 3.x.
240+ fixes
90+ bug reports
4,500+ test files
Two zones
PERFORMANCE
Faster at every size. A rebuilt query core in SurrealDB 4, with faster storage engines, indexes and graph traversals.
7.4x
27 ms to 1.1 ms
24.5 to 9.4 min
COMPATIBILITY
Speaks PostgreSQL and MySQL. PostgreSQL and MySQL clients, and code written for the MongoDB driver, reach the same records as SurrealQL, through one query planner.
PostgreSQL
SELECT p.name,
pr.name AS product
FROM person p
JOIN bought b ON b.in = p.id
JOIN product pr ON pr.id = b.out
WHERE p.age > 30;
MySQL
SELECT pr.name,
COUNT(*) AS buyers
FROM bought b
JOIN product pr ON pr.id = b.out
GROUP BY pr.name
ORDER BY buyers DESC;
MongoDB
import { MongoClient }
from "mql.js";
const client =
new MongoClient(SURREALDB_URL);
const people = client
.db("shop")
.collection("person");
await people
.find({ age: { $gt: 30 } })
.toArray();
SCALE
From zero to massive. Serverless databases that scale to zero when idle, thousands of isolated ones across Cloudflare, and clusters over very large datasets, all on SurrealDB.
Scales to zero when idle
Thousands of instances
One query, many Workers
Compute apart from storage
One query. Thousands of compute units. One answer.
A client sends a query to a coordinator, which splits it across SurrealDB Earth cells on Cloudflare. Each cell reads its share of the data from object storage, every leg reading the same point in time, and the results are merged into one answer, transactional throughout. At peak, that is 10+ billion rows per second.

WHAT IT UNLOCKS
Data infrastructure for AI agents at any scale. One agent, one database. Thousands of agents, thousands of databases. Large platforms, shared clusters. The data model stays the same at every step.
One agent
Thousands of agents
Large platforms
START ON SURREALDB 4
Run it today, wherever you build. Embedded in an application, on a laptop, in the browser, as a server or in SurrealDB Cloud, and as an upgrade from 3.x with every 3.x record still readable.
Your questions,answered
THE PLATFORM
Everything an application and its agents know. Five surfaces, one engine.
Database
Document, graph, vector, time-series and relational in one engine.

Agent Memory
What an agent learns, with its source and its time, in the same engine.

Cloud
Dedicated clusters by region, or serverless on SurrealDB Earth.

Studio
Query, explore and design the schema from the browser.

MCP
Every model that speaks MCP reaches the database and the memory directly.

IN PRODUCTION
Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.
14,000+
Developers building on SurrealDB Cloud
4M+
Developers building on SurrealDB worldwide
FROM THE TEAMS
SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
VP of Engineering, Later
GET STARTED