---
title: "Digital Twins | Use Cases | SurrealDB"
description: "Build digital twins on one engine: graph relationships, time-series telemetry, vector search and geospatial queries in one transaction."
url: https://surrealdb.com/use-cases/digital-twins
---

# Digital twins, on one substrate

Entities, relationships, telemetry, and the agents that reason over them, all in one transactional engine.

[Start free with SurrealDB](https://studio.surrealdb.com/current/instances/deploy) [Talk to us](https://surrealdb.com/contact)

1. ![Babcock](https://surrealdb.com/assets/static/babcock.lo4rnVg1.svg)
2. ![ING](https://surrealdb.com/assets/static/ing.X3I6S3_V.svg)
3. ![British Airways](https://surrealdb.com/assets/static/british-airways.KEsZiwV-.svg)
4. ![Nvidia](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)
5. ![Apple](https://surrealdb.com/assets/static/apple.D5pq4flY.svg)
6. ![SpaceX](https://surrealdb.com/assets/static/spacex.CQJEk-IL.svg)
7. ![Samsung](https://surrealdb.com/assets/static/samsung.CH-vQgnb.svg)
8. ![adidas](https://surrealdb.com/assets/static/adidas.DdTC5qhk.svg)
9. ![Tencent](https://surrealdb.com/assets/static/tencent.paQmLxyy.svg)
10. ![Alibaba](https://surrealdb.com/assets/static/alibaba.B16idgfM.svg)
11. ![PolyAI](https://surrealdb.com/assets/static/poly-ai.c3w_fAg6.svg)
12. ![Later](https://surrealdb.com/assets/static/later.Ds736jFO.svg)
13. ![Verizon](https://surrealdb.com/assets/static/verizon.BI7CajdX.svg)
14. ![Liberty Mutual](https://surrealdb.com/assets/static/liberty-mutual.B7qOU1pd.svg)
15. ![Walmart](https://surrealdb.com/assets/static/walmart.BjDg_Sr8.svg)
16. ![Carrier](https://surrealdb.com/assets/static/carrier.D21gC6NX.svg)
17. ![Saks Fifth Avenue](https://surrealdb.com/assets/static/saks-fifth-avenue.COIDpLSb.svg)
18. ![San Francisco Compute Company](https://surrealdb.com/assets/static/sfcc.B7jlImq4.svg)
19. ![Shield AI](https://surrealdb.com/assets/static/shield-ai.pINZ0KJr.svg)
20. ![Wix](https://surrealdb.com/assets/static/wix.DvHhmoBi.svg)

RELATIONSHIPS + TELEMETRY

## One graph for assets, dependencies, and the world they live in

A digital twin is a graph of entities - machines, suppliers, sites, people, vehicles - connected by typed relationships such as depends_on, supplies, operated_by, located_at. Around those entities sits telemetry, configuration, documents, and embeddings. In SurrealDB, all of these are first-class. A single SurrealQL query can walk the graph, filter by attribute, fetch the most recent sensor readings, and apply a geospatial predicate.

```
1-- Find turbines within 50km of a depot, with their upstream dependencies2-- and last five temperature readings, in one statement.3SELECT4    id, name, location,5    ->depends_on->asset.{ id, name, status } AS upstream,6    (SELECT value, recorded_at FROM sensor_reading7       WHERE asset_id = $parent.id AND metric = "temperature"8       ORDER BY recorded_at DESC LIMIT 5) AS recent_temps9FROM asset10WHERE kind = "turbine"11  AND geo::distance(location, (-1.6, 53.8)) < 50000;
```

REWIND, REPLAY, FORK

## Versioned state and non-destructive history

Twins evolve. Equipment is replaced, configurations change, beliefs about a fault mode are revised when better evidence arrives. SurrealDB's VERSION clause lets you query a record as it existed at a given moment, so past state is reconstructed from the substrate itself rather than from bolt-on audit tables. Combine that with application-defined valid_from and valid_until fields to track when a fact held in the world - independent of when the database learnt about it - and scenario branching, what-if simulation, and forensic review of past decisions become queries rather than orchestration.

AGENTS INSIDE THE TWIN

## Agent Memory on the same engine

When AI agents operate inside a digital twin, they accumulate their own memory: what they have been told, what they have decided, what they now believe about the assets they reason over. That memory needs the same properties as the twin itself: typed relationships, temporal state, provenance, calibrated trust. Agent Memory provides this as a stateless application tier on the same SurrealDB substrate, with every fact carrying its source, every retrieval and decision recorded as a graph-resident trace, and contradictions surfaced as explicit uncertainty rather than silently overwriting. The agent's view of the twin, and the twin itself, share a transaction boundary. Learn more about Agent Memory at [/agent-memory](https://surrealdb.com/agent-memory).

FREQUENTLY ASKED QUESTIONS

## Digital twins

How does SurrealDB compare to Neo4j for digital twin workloads?

Can SurrealDB handle high-frequency telemetry alongside graph queries?

How do simulation and scenario branching work?

What about edge and air-gapped deployments?

Where can I read more?

GET STARTED

## Build your digital twin on a unified backbone

One engine for entities, relationships, telemetry, vectors, and the AI agents that reason over them.

![Samsung](https://surrealdb.com/assets/static/4c58b81e7b3c9466.C_Hv0eml.svg)![NVIDIA](https://surrealdb.com/assets/static/nvidia.DaIEuMil.svg)![Apple](https://surrealdb.com/assets/static/f7dc2519e0d212bc.Cn8MYAK7.svg)![Verizon](https://surrealdb.com/assets/static/18b99996c689000f.B5PQ-nI9.svg)![Tencent](https://surrealdb.com/assets/static/401d8346058682c8.DqM87mst.svg)

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

[Start free with SurrealDB](https://studio.surrealdb.com/current/instances/deploy) [Read the white paper](https://surrealdb.com/whitepapers/digital-twins)

```json
{"@context":"https://schema.org","@type":"Organization","name":"SurrealDB","url":"https://surrealdb.com","logo":"https://surrealdb.com/assets/static/logo.BG7_TG2b.svg","description":"SurrealDB is the unified data layer for AI. A multi-model database for documents, graphs, vectors, and time-series.","foundingDate":"2022","legalName":"SurrealDB Ltd","identifier":{"@type":"PropertyValue","propertyID":"GB-COH","value":"13615201"},"address":{"@type":"PostalAddress","streetAddress":"3rd Floor, 1 Ashley Road","addressLocality":"Altrincham","addressRegion":"Cheshire","postalCode":"WA14 2DT","addressCountry":"GB"},"contactPoint":[{"@type":"ContactPoint","contactType":"customer support","email":"support@surrealdb.com","url":"https://surrealdb.com/contact","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"sales","email":"info@surrealdb.com","url":"https://surrealdb.com/contact","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"security","email":"security@surrealdb.com","url":"https://surrealdb.com/.well-known/security.txt","availableLanguage":"English"},{"@type":"ContactPoint","contactType":"legal","email":"legal@surrealdb.com","url":"https://surrealdb.com/legal","availableLanguage":"English"}],"hasCertification":[{"@type":"Certification","name":"SOC 2 Type 2"},{"@type":"Certification","name":"GDPR"},{"@type":"Certification","name":"Cyber Essentials Plus"},{"@type":"Certification","name":"ISO 27001"}],"owns":[{"@type":"SoftwareApplication","name":"SurrealDB","url":"https://surrealdb.com/surrealdb"},{"@type":"SoftwareApplication","name":"Agent Memory","url":"https://surrealdb.com/agent-memory"}],"knowsAbout":["multi-model databases","document databases","graph databases","vector search","time-series databases","SurrealQL","Agent Memory","real-time databases","embedded databases","context layer","graph ontology","distributed database","knowledge graphs","distributed transaction protocols","highly-scalable databases"],"sameAs":["https://www.wikidata.org/wiki/Q124316308","https://github.com/surrealdb/surrealdb","https://twitter.com/surrealdb","https://www.youtube.com/@surrealdb","https://www.linkedin.com/company/surrealdb","https://discord.gg/surrealdb","https://www.reddit.com/r/surrealdb","https://www.instagram.com/surrealdb","https://medium.com/surrealdb","https://dev.to/surrealdb"]}
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://surrealdb.com"},{"@type":"ListItem","position":2,"name":"Digital twins","item":"https://surrealdb.com/use-cases/digital-twins"}]}
```

```json
{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"How does SurrealDB compare to Neo4j for digital twin workloads?","acceptedAnswer":{"@type":"Answer","text":"Neo4j is a dedicated graph database. A digital twin is rarely only a graph: telemetry is time-series, configuration is document-shaped, semantic search needs vectors, asset locations are geospatial, scenario branching needs versioned state. With Neo4j, those become separate systems, joined through middleware. SurrealDB handles all of them natively, in one transactional engine and one query language. For digital twin workloads, this collapses several data layers into one."}},{"@type":"Question","name":"Can SurrealDB handle high-frequency telemetry alongside graph queries?","acceptedAnswer":{"@type":"Answer","text":"Yes. SurrealDB ingests time-series data at high throughput and exposes it in the same query language as the graph, so a single query can join telemetry to the entities it describes and the relationships those entities sit in. There is no separate time-series store to keep in sync."}},{"@type":"Question","name":"How do simulation and scenario branching work?","acceptedAnswer":{"@type":"Answer","text":"Twins need to fork state, test alternatives, and either merge or discard the result. SurrealDB's flexible schema and versioned-record queries support this without corrupting the live state. Agent Memory extends the pattern to agent memory: a scenario can include the facts an AI agent would learn during the simulation, with the same provenance and supersession behaviour as the production substrate."}},{"@type":"Question","name":"What about edge and air-gapped deployments?","acceptedAnswer":{"@type":"Answer","text":"SurrealDB compiles to a single Rust binary with no external dependencies and runs embedded. Twins on remote sites, on aircraft, or in disconnected facilities can run a local instance and synchronise with a central one when connectivity returns. See /solutions/defence-and-aerospace and /solutions/energy-and-manufacturing."}},{"@type":"Question","name":"Where can I read more?","acceptedAnswer":{"@type":"Answer","text":"A full white paper on digital twins and the data backbone is available."}}]}
```
