SurrealDB
What is SurrealDB?
SurrealDB is a distributed, multi-model database (database platform) that combines document, graph, and relational capabilities with real-time querying and an integrated Application Programming Interface (API) layer for application development.
- Multi-model database engine supporting document, graph, and relational data (database platform).
- Built-in querying with SQL-inspired SurrealQL for complex relations and graph traversals (query language).
- Real-time data access with live queries and change notifications (real-time data platform).
- Integrated authentication, access control, and multi-tenant capabilities (security and multi-tenancy).
- Embeddable and deployable as a single binary for edge, cloud, and on-premises (on-prem) environments (deployment flexibility).
Show more
More About SurrealDB
SurrealDB is a distributed multi-model database (database platform) designed to store and query document, graph, and relational data in a single engine, targeting use cases where applications need flexible data modeling, real-time access, and integrated APIs without separate layers for backend services.
The core of SurrealDB is SurrealQL (query language), a SQL-inspired language that extends traditional relational querying with graph queries, nested documents, field-level expressions, and built-in functions for data manipulation, aggregation, and filtering. SurrealQL supports record links and graph traversals directly in queries, which allows representation of complex relationships between entities without separate join or graph engines.
SurrealDB supports both single-node and distributed deployments (distributed systems), with capabilities for horizontal scaling and high availability as described in project materials. It can be deployed as a standalone database server, as an embedded database within applications, or as a backend service accessible over Hypertext Transfer Protocol (HTTP), WebSocket, and other supported protocols (application backend). The project presents SurrealDB as a single binary that includes the database engine, API layer, authentication, and access control logic, reducing the number of components required to stand up a data backend.
From a security and governance perspective, SurrealDB includes built-in user authentication, record-level and field-level access control, and multi-tenant namespaces and databases (security and multi-tenancy). These features allow enterprises to isolate workloads, define granular permissions, and manage multiple applications or clients on shared infrastructure while enforcing access boundaries at the data layer.
SurrealDB provides real-time capabilities such as live queries and change feeds (real-time data platform), enabling applications to subscribe to updates and synchronize clients when underlying data changes. This behavior is relevant for dashboards, collaboration tools, and event-driven architectures where low-latency updates from the database to application clients are necessary.
On the interoperability front, SurrealDB exposes APIs accessible via HTTP and WebSocket (API and integration), and supports integration with common programming languages through client libraries as documented by the project. Its schema-flexible approach (schema management) allows both schema-full and schema-less definitions, giving teams the option to enforce strict models or evolve structures over time. For enterprise architects, SurrealDB fits into categories such as operational databases, multi-model data stores, and Backend-as-a-Service (BaaS) style platforms where the data store and API surface are integrated.