🚀 Just launched a new scalable cloud graph database! Any feedback/users/testers appreciated!
Tags: database, javascript, rust, webdev
Published: 2022-08-15 17:22:00

My brother and I have just 🚀 launched our scalable cloud graph database [SurrealDB](https://surrealdb.com) in public open beta. We've been [working on it](https://github.com/surrealdb/surrealdb) for 7 years now, and it's completely free to use. We wanted to create a database that allowed developers to focus on building frontend applications, and not worrying about the backend infrastructure.

SurrealDB is a newsql multi-model database, that operates in schemafull or schemaless mode, with tables, inter-document record links (no JOINs), and graphdatabase modelling functionality. You can query it from the backend, or from frontend applications (Chrome, Firefox, Safari, Electron, Tauri) with javascript, with in-built permissions and authentication.

## Database, API, and permissions
### Database, realtime API layer, and security permissions all-in-one
SurrealDB combines the database layer, the querying layer, and the API and authentication layer into one platform. Advanced table-based and row-based customisable access permissions allow for granular data access patterns for different types of users. There's no need for custom backend code and security rules with complicated database development.

![Database API security](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/st0k2zlmcusbvoqfa6pm.png)

## Multi-model database
### Tables, documents, and graph. Store and model your data in any way.
As a multi-model database, SurrealDB enables developers to use multiple techniques to store and model data, without having to choose a method in advance. With the use of tables, SurrealDB has similarities with relational databases, but with the added functionality and flexibility of advanced nested fields and arrays. Inter-document record links allow for simple to understand and highly-performant related queries without the use of JOINs, eliminating the N+1 query problem.

![Multi-model database](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1nfeg559swzqxrm1voaf.png)

## Inter-document links
### Advanced inter-document relations and analysis. No JOINs. No pain.
With full graph database functionality SurrealDB enables more advanced querying and analysis. Records (or vertices) can be connected to one another with edges, each with its own record properties and metadata. Simple extensions to traditional SQL queries allow for multi-table, multi-depth document retrieval, efficiently in the database, without the use of complicated JOINs and without bringing the data down to the client.

![Inter-document links](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/boeb4euhmowz7g7sszdp.png)

## Simple schema definition
### Simple schema definition for frontend and backend development
With SurrealDB, specify your database and API schema in one place, and define column rules and constraints just once. Once a schema is defined, database access is automatically granted to the relevant users. No more custom API code, and no more GraphQL integration. Simple, flexible, and ready for production in minutes not months.

![Simple schema definition](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5gnlhds5syibdryu7c81.png)

## Connect from the browser
### Connect and query directly from web-browsers and client devices
Connect directly to SurrealDB from any end-user client device. Run SurrealQL queries directly within web-browsers, ensuring that users can only view or modify the data that they are allowed to access. Highly-performant WebSocket connections allow for efficient bi-directional queries, responses and notifications.

![Connect from the browser](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6decg8zezb990q6we8jr.png)

## Flexible querying
### Query the database with the tools you want

Your data, your choice.  SurrealDB is designed to be flexible to use, with support for SurrealQL, GraphQL (coming soon), CRUD support over REST, and JSON-RPC querying and modification over WebSockets. With direct-to-client connection with in-built permissions, SurrealDB speeds up the development process, and fits in seamlessly into any tech stack.  

![Flexible querying](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gk5hsn5cvybcmvyylqlq.png)

## Realtime live queries
### Realtime live queries and data changes direct to application
SurrealDB keeps every client device in-sync with data modifications pushed in realtime to the clients, applications, end-user devices, and server-side libraries. Live SQL queries allow for advanced filtering of the changes to which a client subscribes, and efficient data formats, including DIFFing and PATCHing enable highly-performant web-based data syncing.  

![Flexible querying](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/buv5280rswtd1rfamjsz.png)

## Scale effortlessly
### Scale effortlessly to hundreds of nodes for high-availability and scalability
SurrealDB can be run as a single in-memory node, or as part of a distributed cluster - offering highly-available and highly-scalable system characteristics. Designed from the ground up to run in a distributed environment, SurrealDB makes use of special techniques when handling multi-table transactions, and document record IDs - with no use of table or row locks.

![Scale effortlessly](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rj31dloq7crc585q30cm.png)

## Embedded functions
### Extend your database with JavaScript and WebAssembly functions
Embedded JavaScript functions allow for advanced, custom functionality, with computation logic being moved to the data layer. This improves upon the traditional approach of moving data to the client devices before applying any computation logic, ensuring that only the necessary data is transferred remotely. These advanced JavaScript functions, with support for the ES2020 standard, allow any developer to analyse the data in ever more simple-yet-advanced ways.

![Embedded functions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/43yiknnzyvlnllcp1o0p.png)

## Embedded or distributed
### Designed to be embedded or to run distributed in the cloud
Built entirely in Rust as a single library, SurrealDB is designed to be used as both an embedded database library with advanced querying functionality, and as a database server which can operate in a distributed cluster. With low memory usage and cpu requirements, the system requirements have been specifically thought through for running in all types of environment.

![Embedded or distributed](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rpi6evbhkqtg3me5o0l.png)

#Quick look...
Set granular 🔑 permissions to ensure that only the right people can 👀 see the right data.

![Granular permissions](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fnhx3diibgme9ctclcx5.png)

Aggregate views let you pre-compute 📈 analytics queries as data is written to SurrealDB in an efficient and performant way. No more 🥴 complicated queries for dashboard analytics.

![Aggregate views](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4okic7lcsom3d75675j4.png)

#Any feedback/users/testers appreciated
We're really pleased with where we've got to so far, but we have such a long journey to go!

We are looking for as much feedback, suggestions, contributors, or advice as possible from this awesome community! 😀 [SurrealDB](https://surrealdb.com)