SurrealDB vs Milvus

Choose SurrealDB if you want one multi-model engine and its BSL 1.1 terms work for your use. Choose self-hosted Milvus if your core workload is embeddings with metadata filtering under Apache 2.0 and you can run the cluster yourself.

On this page

Is self-hosted Milvus the right SurrealDB alternative for your workload?

Self-hosted Milvus is a sound alternative when your main workload is vector search with structured metadata, but only after you have checked what SurrealDB gives you that Milvus does not. SurrealDB fits teams that want graph, relational, document and vector data in one engine, queried with SurrealQL, with full-text, vector and hybrid retrieval, live queries and row-level permissions in the same product. Its license is the first thing to review. The repository's LICENSE file is Business Source License 1.1 for SurrealDB 3.0, and the file states it is not an Open Source license. The Additional Use Grant permits use of the licensed work but excludes use as a Database Service, and the Change Date is 2030-01-01, when the Change License becomes Apache License 2.0. The README says certain core components are Apache License 2.0, so have legal and procurement confirm which parts of your stack that covers.

Milvus fits a narrower job. Its official overview describes it as a vector database for storing embeddings and searching them together with structured metadata. The core repository is Apache License 2.0, the project is listed under the LF AI & Data Foundation, and Zilliz is its major contributor. Milvus offers three modes: Milvus Lite as a Python library for prototyping, Milvus Standalone as a single-machine server in one Docker image, and Milvus Distributed on Kubernetes. The Docker prerequisites list 8 GB of RAM as the minimum for Standalone and 32 GB for Cluster, with SSD storage, so capacity planning starts there. Milvus is also described as stateless with compute separated from storage, which affects how you size and back up the cluster. Graph traversal and relational joins are outside its described role, so those workloads would stay in another system.

The decision turns on three questions. First, do you need the non-vector model features in the same engine, such as graph queries, relational joins, document storage, live queries or row-level permissions? If you do, Milvus covers only part of the workload and you will run more than one system. Second, how does your use fit the SurrealDB license? Confirm whether the database will be offered to customers as a service, since that is the use the Additional Use Grant excludes, and record counsel's reading before you renew. Third, who will operate the cluster? Standalone needs a container host and a backup plan. Distributed needs Kubernetes skills and a design for the metadata and object storage components, and someone must own upgrades. Check the official release notes for the current version before you pin one. Write these answers down before you request a quote, because they set the scope.

Which SurrealDB alternative fits each buyer scenario

This table matches common buyer situations to the engine that fits each one, along with the condition that must hold for that fit. Read each row as a test: if the stated condition is false in your environment, the recommendation does not apply. Query shape and operating capacity usually decide the fit first, and license review often settles the choice once they are clear.

Buyer scenarioBetter fitWhy it holds and when
One application needs graph, relational and vector queries in one engineSurrealDBHolds when one engine must serve all three query types. Milvus stores embeddings and metadata, so graph and relational work would need another system.
Retrieval service that only stores embeddings and filters by metadataMilvusHolds when vector search is the main workload and the team can operate etcd, MinIO and the bundled Woodpecker write-ahead log.
License review flags BSL 1.1MilvusHolds if BSL 1.1 is a blocker. Milvus core is Apache 2.0, which the LICENSE file states.
Data residency requirementEither, self-hosted in the required regionBoth can run in your own accounts or data centers. Managed cloud tiers need a separate residency review.
Team needs open-source license certainty for its own useMilvusHolds when Apache 2.0 terms for the core project settle the review. Confirm the license of each bundled component separately.
Team with little Kubernetes or storage operations capacitySurrealDB, single nodeHolds when one node is enough. Milvus Standalone still runs etcd, MinIO and a write-ahead log.
Local prototype with a small embedding setMilvus LiteHolds for local prototyping as a Python library. Plan a server deployment before production use.

Where the two products overlap and where they diverge

The overlap between SurrealDB and Milvus is vector search. Both can store embeddings and return the stored items closest to a query vector, so this is the point where a team can compare them directly. SurrealDB is a multi-model database built in Rust that holds document, graph, relational, time-series, geospatial and key-value data and is queried with SurrealQL. Its README lists full-text, vector and hybrid retrieval, live queries, ACID transactions and row-level permissions, so one engine can hold the records and the embeddings that describe them. Milvus is a vector database for storing embeddings and searching them together with structured metadata. Its scope is narrower: it answers which stored vectors are nearest to a query, filtered by fields attached to each entity.

The divergence starts with what surrounds the vectors. If your application uses SurrealDB for graph traversal, relational rules, live queries or row-level permissions in the same request as a vector search, moving only the embeddings to Milvus means rebuilding those controls in the application or in a second store. Confirm in the Milvus documentation for the version under review whether full-text search, transactions and row-level access exist before you assume they do, because the Milvus scope described here is vector and metadata search. The Milvus overview is the starting point, and the release notes show which version is current for your evaluation.

Start the decision with a query inventory. List each SurrealDB query that combines vector retrieval with other logic, and mark where a permission check or transaction must hold for the result to be correct. Those queries decide whether Milvus can hold the embeddings alone or whether records, permissions and vectors must stay together in one system. Also plan for the deployment shape. In the Docker Compose Standalone setup, etcd and MinIO run in separate containers and Woodpecker is bundled as the write-ahead log, so a Milvus install has more moving parts than a single SurrealDB process. Ask your platform team who will operate each of these components before you choose a path.

Capability, license and deployment facts side by side

This table sets SurrealDB beside self-hosted Milvus on data model, query and retrieval features, licensing, deployment modes, resource floors, release status and managed options. Where a cell depends on a feature or version this comparison does not confirm, it names what to check in the official documentation. The main takeaway: the licenses differ in kind, since SurrealDB 3.0 is source-available under the Business Source License 1.1 and Milvus is Apache 2.0, so check the terms against your intended use first.

CapabilitySurrealDBMilvus (self-hosted)
Data modelsDocument, graph, relational, time-series, geospatial and key-value data in one databaseVector embeddings stored and searched together with structured metadata
Query languageSurrealQL, the native query languageClient SDKs and API calls. Confirm query expression syntax in the Milvus documentation.
Vector and hybrid retrievalVector and hybrid retrieval are listed alongside full-text search. Confirm index types and limits in the SurrealDB documentation.Vector search is its core function. Confirm hybrid retrieval options and their versions in the Milvus documentation.
Live queries and access controlLive queries and row-level permissions are listed. Confirm configuration details in the SurrealDB documentation.Confirm live query support and the access control model, including users and roles, in the Milvus documentation.
LicenseBusiness Source License 1.1 for 3.0. Source-available, converting to Apache 2.0 on 2030-01-01.Apache License 2.0 for the core repository, under the LF AI & Data Foundation with Zilliz as major contributor
Deployment modesEmbedded, single node, distributed cluster, Docker, Homebrew and KubernetesMilvus Lite for prototyping, Standalone on one machine, Distributed on Kubernetes
Minimum Standalone and Cluster resourcesConfirm minimum RAM, cores and storage for each mode in the SurrealDB documentation.Standalone: 8 GB RAM minimum, 4 or more cores recommended. Cluster: 32 GB RAM, 8 or more cores recommended. SSD storage.
Latest releaseConfirm the current release and version history in the SurrealDB repository.v3.0.7, dated November 30, 2026, per the official release notes
Managed optionsSurrealDB Cloud. Confirm plans, regions and data location with SurrealDB.Zilliz Cloud, Zilliz's managed service for Milvus. Confirm plan options with Zilliz.

Who controls the data in each deployment model

Each deployment model answers one question first: who holds the database files, the backups and the query logs. The cards run from software you operate inside your own infrastructure to managed services that run on a vendor's side. The last card covers the controls that apply to every model.

SurrealDB self-hosted

Run SurrealDB embedded in an application, as a single node, or as a distributed cluster, installed with Homebrew, Docker or on Kubernetes. The data files, backups and query logs sit wherever you place them, so residency is your decision. Check the Business Source License 1.1 before you commit: the Additional Use Grant permits use only if it is not a Database Service, and the Change Date is 2030-01-01. Ask counsel whether your planned use fits the grant.

SurrealDB license file

SurrealDB Cloud

SurrealDB Cloud runs the database on the vendor's side, so where the data sits, how backups run and who can view operational logs depend on the vendor's setup. Your team still sets the schema and access roles, but the provider runs the infrastructure beneath them. Ask where each region sits, which subprocessors touch customer data, how long backups are kept and who at the vendor can open tenant data during support. Get those answers and the data processing terms in writing before any regulated records are loaded.

Milvus self-hosted

Milvus Standalone runs on one machine from a single Docker image, and Milvus Distributed runs on Kubernetes. The Docker prerequisites list at least 8 GB of RAM for Standalone and 32 GB for Cluster, with SSD storage, and the Compose setup runs etcd and MinIO in separate containers. The core repository is licensed under Apache License 2.0, so the software can run in your cloud account, data center or air-gapped network. Confirm which components store vectors and metadata, since encryption, backups and access rules must cover each one.

Milvus overview

Zilliz Cloud for managed Milvus

Zilliz Cloud is Zilliz's managed service for the open-source Milvus vector database, offered as free, serverless, dedicated and BYOC options. The vector engine is the same project, so the difference lies in who installs, patches, backs up and monitors the cluster. BYOC is the option most likely to keep the cluster in your cloud account, but confirm that with Zilliz. Also ask where backups go, which staff can reach your collections during support and how upgrades are scheduled.

Identity, access and audit evidence

SSO, access control, audit logging and the evidence assessors request are configured and reviewed by your team, whichever model you choose. Map which admin roles can read vectors, export collections or change retention, and confirm that audit logs leave the database host. DeployOpen prepares control descriptions, configuration exports and evidence for compliance assessments. Independent auditors issue any attestation or certification, and DeployOpen does not.

How Milvus runs at prototype, single-node and cluster scale

Milvus Lite is the Python library form of Milvus, intended for prototyping. A developer installs it as a Python package and works against a local database without starting a server, which makes it useful for testing embeddings, collections and metadata filters before any hosting decision is made. The official overview presents it as the prototyping mode and does not describe it as a production deployment.

  • Setup: Installation happens in a Python environment, so no containers, Kubernetes cluster or object storage are needed for early tests.
  • Scope: It suits schema design, index experiments and query patterns on sample data.
  • Data location: Confirm where Lite writes its files on the developer machine before loading any customer or employee records.
  • Carry-forward: Client code written against Lite should be retested against a server mode before go-live, because the deployment changes endpoints and access settings.
  • Operations: Lite does not provide a separate server to back up, monitor or upgrade, so those controls must be designed when the workload moves.

Before a prototype moves to a shared environment, check the overview for what Lite covers and record which access, backup and logging controls were never set up.

What each option costs to own, by component

The first cost question for SurrealDB is licensing, not hardware. The repository's LICENSE file is Business Source License 1.1 for SurrealDB 3.0, with SurrealDB Ltd. as Licensor, and the file states that it is not an Open Source license. The Additional Use Grant permits use provided the Licensed Work is not used as a Database Service. The Change Date is 2030-01-01, and the Change License is Apache License 2.0. Whether your self-hosted deployment falls inside that grant, and whether you need a commercial agreement with the vendor, must be settled with your counsel and SurrealDB Ltd. before you budget. Ask for the written terms that apply to your specific use, including how an internal platform that serves several business units is classified.

The Milvus core project carries no license fee, because the milvus-io/milvus repository is licensed under Apache License 2.0. Its recurring costs sit in infrastructure and people. Standalone runs as a single server from one Docker image, with etcd and MinIO in separate containers in the Docker Compose setup, while the Distributed mode on Kubernetes adds query, data and index nodes that scale independently. Plan for compute at the documented minimums of 8 GB RAM for Standalone and 32 GB for Cluster, with SSD storage, plus object storage, etcd, backups, monitoring and upgrades. The main cost drivers are vector count, embedding dimensions, replica count and the number of sites or availability zones you need. Size these against your own data, starting from the Milvus Docker prerequisites checklist.

What moving off SurrealDB into Milvus involves

The move runs as a sequence in which each step produces an artifact the next one depends on. It starts with an inventory of the SurrealDB features your application uses and ends with a cutover that can be reversed if parallel runs disagree.

  1. Inventory the SurrealDB features in use

    The application team lists every SurrealQL query, graph traversal, live query, search call, transaction and row-level permission the application depends on, grouped by the service that issues it. Include background jobs, scripts, reports and admin tools, because these often run queries that do not appear in the main application code. Mark each feature that Milvus does not provide natively, such as graph traversal and row-level permissions, and confirm each mark against current Milvus documentation. Done when every feature has an owner and a migration impact rating in a shared inventory.

  2. Decide which data moves

    The data owner and application architect split the dataset into two groups. Embeddings and the metadata used for similarity search move to Milvus, while records that need graph traversal, joins or live updates stay in SurrealDB. Many teams keep SurrealDB as the system of record and copy only the search-relevant fields. Record the sync direction for each group and name an owner for each direction. Done when a written data map lists every table or record type with its destination, its sync direction and its owner.

  3. Export embeddings and metadata

    The engineering team exports record IDs, embedding vectors and filter metadata into a neutral format such as JSON Lines or Parquet. Confirm with SurrealDB's documentation for your version which export method it supports, and confirm whether a ready-made importer for Milvus exists. If none exists, the custom export and load scripts are part of this effort and should be scoped in the written quote. Check that vector dimensions, null values and nested fields survive the export intact. Done when row counts and a checksum per table match between the export and a fresh query against the source.

  4. Design Milvus collections and metadata fields

    The platform engineer defines one Milvus collection per embedding model, with the vector dimension and distance metric that model requires. Declare the scalar metadata fields used in filters, their data types and which ones get scalar indexes, and map SurrealDB record IDs to a primary key format. Confirm in the current Milvus documentation how schema, partition keys and indexes behave in the release you deploy before fixing the design. Done when a schema review approves dimensions, fields and index choices and a sample batch loads without type errors.

  5. Load data into a Standalone test environment

    The platform team deploys Milvus Standalone in a non-production environment that you control, sized against the Docker prerequisites for memory, CPU cores and SSD storage. The Docker Compose deployment runs etcd and MinIO in separate containers, and the documented minimum memory for Standalone is 8 GB, so size the test host to your expected data volume and query load. Load the exported data, build the indexes, and run reference queries whose correct answers the data owner has already verified. Done when loaded counts match the export and reference queries return the expected top results.

  6. Rebuild access control in the gateway

    The security engineer and application team move each SurrealDB permission into the application layer or an API gateway that sits in front of Milvus. Map each rule to a filter on tenant, owner or group metadata, and attach that filter on the server so clients cannot supply or remove it. Confirm what Milvus access control covers in your release before assuming the database enforces any record-level rule. Test with a user from each role, including denied cases, and log every access decision. Done when a test matrix shows each role sees only the records its SurrealDB permissions allowed.

  7. Run both systems in parallel

    The application team sends production-like traffic to both systems, with users still served from SurrealDB and the same queries shadowed to Milvus. Compare returned IDs, ranking order, filter results and recall against the SurrealDB baseline, and measure latency at the percentiles your service targets use. Classify each mismatch as a sync gap, a metadata mapping error or an expected difference between the engines. Done when the recall, latency and mismatch thresholds, written down before the test began, are met for the full test period.

  8. Cut over with a rollback plan

    The operations lead moves read traffic to Milvus in a planned window while SurrealDB remains the system of record and writes keep flowing to both systems. Define the rollback trigger, the person who authorizes the switch back, and the gateway change that repoints reads to SurrealDB. Rehearse the rollback in the test environment before the production change. Done when the rollback has been rehearsed, the trigger criteria are signed off by the product owner and security team, and monitoring alerts are in place for the cutover.

Decision path from license review to cutover

The diagram starts with one question: does the application need SurrealDB's graph, relational or SurrealQL features? If yes, the path keeps SurrealDB and sends the BSL 1.1 terms to counsel. If no, the next check is whether the workload is a Database Service under the Additional Use Grant, since that use falls outside the grant and also goes to counsel. Teams that clear the license checks then confirm they can operate Milvus Standalone or Distributed, run a pilot, run both systems in parallel, and cut over only after the results hold up.

Decision path from the license question to a Milvus cutover.

Can our team run a SurrealDB alternative without outside help?

Is SurrealDB open source, and can we self-host it freely?

No. The license file states that SurrealDB is not an Open Source license. It is Business Source License 1.1 for SurrealDB 3.0, with SurrealDB Ltd. as Licensor. The Additional Use Grant permits use provided the software is not offered as a Database Service, and the Change Date is 2030-01-01, when the Change License becomes Apache License 2.0. The README says certain core components are Apache License 2.0 and that libraries and SDKs are Apache License 2.0 or MIT, so check which parts you would ship or host. Have counsel test the grant against your planned use before you rely on it for an internal service that other parties access.

Is self-hosting Milvus free if the license costs nothing?

The software license is free, because the core milvus-io/milvus repository is Apache License 2.0, but infrastructure and operations are not free. Your costs are compute, SSD storage, supporting services, backups, monitoring, and the staff time to run them. Milvus's Docker prerequisites list at least 8 GB RAM for Standalone and 32 GB for Cluster, with SSD storage recommended, and the Standalone Compose setup runs etcd and MinIO in separate containers. Those minimums set a starting point and say nothing about sizing for your workload. Your recurring bill rises with vector count, embedding dimensions, replication and the hours spent on upgrades and incidents.

How long does it take to move from SurrealDB to Milvus?

The duration depends on four drivers: how much data you hold, how many queries need rewriting, how much validation your team requires, and how many applications read from SurrealDB today. Milvus stores embeddings with structured metadata, so vector records can move across, but SurrealQL queries that combine graph traversal, relational logic and vector search need redesign in the application layer. Ask any provider for a written scope that lists the data sets, each query to be rewritten, the validation method (an illustrative check compares top results for a sample of test queries), the cutover window and the rollback plan. Without that scope, no timeline is meaningful.

What skills does our team need to run Milvus in production?

Your team needs container skills at minimum, and Kubernetes skills if you go beyond a single machine. Milvus Standalone runs from one Docker image with supporting services, while Milvus Distributed on Kubernetes is installed with the Milvus Operator, which adds cluster networking, node scaling and upgrade procedures. Plan for owned storage, including SSD volumes and object storage, plus tested backups and restores. Someone must also own the on-call rotation, monitoring of query latency and memory, and version upgrades. The release notes list four releases between October 26 and November 30, 2026, so an upgrade cadence needs a named owner. Assess these skills before you commit to a date.

Can we keep SurrealDB for graph queries and move only vectors?

Yes, a split is possible, and it is a design decision you should test before you commit. SurrealDB keeps the graph, document and relational data, while Milvus holds embeddings with the metadata your search filters need. The cost is consistency: each vector write must succeed in two systems, and a search result that returns a vector ID must resolve to a current SurrealDB record. Decide whether a short delay between the systems is acceptable, how deletions reach Milvus, and where the application joins results. Put those decisions in the written scope, because they determine how much of the work is integration.

Does Milvus support the access control our compliance team requires?

Confirm it in the Milvus documentation for the exact version you plan to run, because access control features change between releases and this page does not verify them. Check user and role management, how privileges are granted on collections and databases, whether TLS is enforced for client connections, and how authentication connects to your identity provider. Where a feature is missing or thin, you must compensate at the network layer or in a gateway in front of Milvus, and that compensating control needs the same review as the database. Ask your security team to list the required controls first, then map each one to a documented Milvus setting or a named compensating control.

Who does the work if we bring in DeployOpen for the move?

DeployOpen plans, implements, integrates, hardens, backs up, documents and supports self-hosted open-source platforms in your own infrastructure, so the division of work can be agreed in writing before anything starts. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing first. One workable split has your team keep decision rights over data, access and cutover, while the provider builds the deployment, the migration tooling and the runbooks. Ongoing upgrades, backup checks and continuous testing are available as retainers, which can take over on-call load your team does not want to carry. DeployOpen does not publish a price list, so request a quote built from the written scope.

How DeployOpen evaluates and implements a move to Milvus

DeployOpen approaches SurrealDB vs Milvus as an implementation project inside your own infrastructure, starting from the workloads you run today. We plan, build, test and document a self-hosted Milvus setup, then hand it over with the runbooks and evidence your team needs. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope lists which SurrealDB workloads move to Milvus, such as vector retrieval and metadata filtering.
  • Scope lists the SurrealDB features you rely on, such as live queries and row-level permissions, and how each is handled.
  • Scope notes the BSL 1.1 terms in SurrealDB's license file so your legal team can confirm them.

How we build

  • Milvus runs in your infrastructure as Standalone on one host or as a Kubernetes cluster, per the agreed scope.
  • Sizing starts from Milvus's documented minimums of 8 GB RAM for Standalone and 32 GB for Cluster, on SSD storage.
  • Docker Compose Standalone runs etcd and MinIO in separate containers, with Woodpecker bundled as the write-ahead log.

How we hand over

  • Handover includes runbooks for installation, upgrades, backups and restores of the Milvus deployment, as agreed in scope.
  • Documentation covers access control, audit logging and data handling settings, so your compliance team can review them.
  • Data migration steps and cutover criteria are written down before the SurrealDB source is retired.

How we support

  • Ongoing support, upgrades and continuous testing are available for your Milvus deployment as a retainer after handover.
  • Upgrades are planned against Milvus release notes and tested in a non-production environment first.
  • Security testing of the Milvus setup and the applications that call it can be scheduled as part of the retainer.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.