SurrealDB is a database that tries to do it all: documents, graphs, key-value storage, and real-time updates in one system. Instead of running Postgres for tables, Redis for caching, and something else for real-time, you can do all of it in SurrealDB.
How does it work? You store records in tables, but each record can hold nested data like a document. Records can also link to each other, which gives you graph queries. And you can subscribe to changes, so your frontend updates the moment data changes.
-- Create a person and link them to a post CREATE person:arhan SET name = 'Arhan', age = 21; CREATE post:1 SET title = 'Hello SurrealDB', author = person:arhan; -- Find all posts and their authors in one query SELECT *, author.* FROM post; SurrealDB is great for beginners because its query language, SurrealQL, reads a lot like SQL with extras. You can start it with one command, and the built-in web UI lets you run queries and see your data without installing anything else.
surreal start --log debug --user root --pass root memory When should you use it? For apps where data is connected — social apps, recommendation features, dashboards that update live. If your app needs "show me all friends of friends who liked this post", a graph query in SurrealDB is far simpler than the same thing in SQL joins.
The limits are worth knowing. It is a young database, so the ecosystem is smaller than Postgres or MongoDB. You will find fewer tutorials, fewer hosting options, and fewer battle-tested stories. Use it for learning and side projects first, and check the docs before betting a production app on it.
Start today: run it in memory mode, create two linked records, and fetch them with one query. That single query — data plus its relationships — is the idea the whole database is built around.