---
title: "Retail and Ecommerce | Solutions | SurrealDB"
description: "Real-time personalisation, fraud detection, and seamless scalability from storefront to supply chain - all in one database."
url: https://surrealdb.com/solutions/retail-and-ecommerce
---

# AI-ready infrastructure for modern retail

Real-time personalisation, fraud detection, and seamless scalability from storefront to supply chain - all in one database.

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

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)

CAPABILITIES

## Real-time personalisation at scale

SurrealDB capabilities that power responsive, data-driven retail experiences.

### Advanced product recommendations

Graph and vector search for accurate, real-time recommendations tailored by user behaviour, purchase history, and contextual signals.

### Dynamic pricing models

Real-time data ingestion and AI-powered personalisation for pricing strategies that respond to customer segments, inventory, and market conditions.

### Fraud detection with graph analytics

Uncover fraudulent behaviour patterns in transactions, logins, and checkout processes using built-in graph capabilities in real time.

### Visual intelligence with SurrealML

Automatically analyse and classify product images uploaded by vendors. Surface similar products and automate moderation workflows.

SEE IT IN ACTION

## Personalise recommendations with vector search

Combine purchase history graphs with vector similarity to surface the most relevant products for each customer.

```
1-- Get the embedding of the user's last purchased product2LET $last = SELECT *, out.embedding AS embedding3    FROM ONLY purchased4    WHERE in = user:shopper_015    ORDER BY at DESC LIMIT 1;67-- Find visually and semantically similar products8SELECT id, name, price,9    vector::similarity::cosine($last.embedding, embedding) AS score10FROM product11WHERE score > 0.812ORDER BY score DESC13LIMIT 6;
```

USE CASES

## Core use cases for retail and e-commerce

How retailers apply SurrealDB to drive personalisation, security, and operational efficiency.

### Real-time personalisation

Vector + graph search to drive conversion with AI-powered recommendations.

### Product discovery

Semantic search powered by AI embeddings for intelligent product matching.

### Vendor onboarding

SurrealML automates image tagging and validation for faster vendor integration.

### Fraud detection

Graph analytics for transaction monitoring and anomaly detection.

### Inventory forecasting

Time-series analysis and trend detection for supply chain optimisation.

### In-store tech (kiosks, tablets)

WASM + edge deployment in-browser or on-device for offline capabilities.

### Mobile shopping apps

Embedded engine for real-time, offline-ready data synchronisation.

### Financial compliance

Historical data querying for audit trails and regulatory reporting.

WHY SURREALDB

## Why leading retailers choose SurrealDB

The technical and operational advantages that set SurrealDB apart in retail.

### [Built in Rust for security and edge performance](https://surrealdb.com/surrealdb/features)

Memory safety guarantees with performance equivalent to C/C++. Deploy at the edge, in-browser via WebAssembly, or on IoT devices.

Learn more

### [Scalable without complexity](https://surrealdb.com/surrealdb/features)

Horizontal scalability with no sharding or external scaling logic. Ideal for peak season traffic, product launches, and flash sales.

Learn more

### [Semantic and AI search](https://surrealdb.com/surrealdb/features)

Understand customer intent beyond keyword search, surfacing relevant results even from long-tail or poorly tagged catalogues.

Learn more

### [Time-series and historical insights](https://surrealdb.com/surrealdb/features)

Track inventory movement, pricing trends, and consumer behaviour in real time with historical time-travel queries for audits.

Learn more

### [Hyper-responsive retail experiences](https://surrealdb.com/surrealdb/features)

Deploy at the edge, in-browser, or on IoT devices for responsive retail experiences with offline capabilities and real-time sync.

Learn more

FREQUENTLY ASKED QUESTIONS

## Retail and e-commerce

How does SurrealDB help with real-time personalisation?

Can SurrealDB replace multiple databases in my retail stack?

How does SurrealDB handle product catalogue search?

Is SurrealDB suitable for high-traffic e-commerce events?

Can I model customer journeys as graphs?

GET STARTED

## Start building with SurrealDB

Catalogue, inventory, and personalisation in one engine that keeps up with your customers.

![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) [View documentation](https://surrealdb.com/docs/surrealdb)

```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":"Solutions","item":"https://surrealdb.com/solutions"},{"@type":"ListItem","position":3,"name":"Retail and ecommerce","item":"https://surrealdb.com/solutions/retail-and-ecommerce"}]}
```

```json
{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"How does SurrealDB help with real-time personalisation?","acceptedAnswer":{"@type":"Answer","text":"SurrealDB's live queries push data changes to connected clients instantly. Combined with graph relationships between customers, products, and behaviour events, you can deliver personalised recommendations and dynamic pricing without polling or external stream processors."}},{"@type":"Question","name":"Can SurrealDB replace multiple databases in my retail stack?","acceptedAnswer":{"@type":"Answer","text":"Yes. SurrealDB unifies document storage, graph relationships, vector search, and real-time capabilities in one engine. Retailers commonly replace separate document stores, graph databases, and caching layers with a single SurrealDB deployment."}},{"@type":"Question","name":"How does SurrealDB handle product catalogue search?","acceptedAnswer":{"@type":"Answer","text":"SurrealDB combines full-text search, vector similarity, and structured filters in a single query. You can power type-ahead search, semantic product discovery, and faceted filtering without a separate search engine."}},{"@type":"Question","name":"Is SurrealDB suitable for high-traffic e-commerce events?","acceptedAnswer":{"@type":"Answer","text":"Yes. SurrealDB is built in Rust for low-latency, high-throughput workloads and supports horizontal scaling. It handles traffic spikes from flash sales and seasonal peaks while maintaining consistent query performance."}},{"@type":"Question","name":"Can I model customer journeys as graphs?","acceptedAnswer":{"@type":"Answer","text":"Yes. SurrealDB's native graph edges let you model customer-product-order-review relationships and traverse them efficiently. This powers use cases like recommendation engines, loyalty networks, and churn prediction."}}]}
```
