17 open-source alternatives ranked by real activity

Open-source Azure Cosmos DB alternatives

A curated, ranked list of the 17 best open-source alternatives to Azure Cosmos DB.

The best open-source alternative to Azure Cosmos DB is Redis. If that doesn't suit you, other good options are TiDB, SurrealDB, MongoDB and Neo4j.

Commercial alternatives to Azure Cosmos DB include Amazon DynamoDB, Amazon Aurora, MongoDB Atlas and Google Cloud Spanner. See all 25.

Azure Cosmos DB alternatives are mainly databases. 16 of them shipped code in the last 30 days, 17 can be self-hosted, and 9 use a permissive licence.

Last updated November 13, 2026 · ranked by GitHub stars, growth and recent commits

Redis

An in-memory data store used as a cache, session store, data structure server, message broker and vector query engine for real-time applications.

GitHub stars
77k
Last commit
yesterday
Latest release
8.10.3
Self-hosted
Yes
Hosted version
Available
redis.ioRedis homepage screenshot

Redis is an in-memory data store that developers use as a cache, a session store, a database and a message broker. Because data lives in memory it answers requests quickly, which makes it popular for real-time applications. The project describes itself as a cache, a data structure server, and a document and vector query engine.

Rather than just strings, it offers data structures such as lists, sets, hashes, sorted sets and JSON, with higher-level patterns built on them, such as counters, queues, leaderboards and rate limiters, plus transactions and scripting. For caching it offers multiple eviction policies along with expiry for keys and for individual hash fields. It also handles key-value, document and time series storage, vector search and messaging. Client libraries cover most languages, and redis-cli and Redis Insight provide command line and graphical access.

The source is on GitHub, written in C, and can be built from source with documented flags for allocators, TLS and more. The license is listed as 'Other' in repository metadata, so check the current terms. Redis can be run on your own servers or consumed as a cloud-hosted service from the vendor.

Key features

  • Rich data types including hashes and sorted sets
  • Caching with eviction and key expiration
  • JSON, time series and document storage
  • Vector search for AI applications
  • Message broker and queue support
  • Transactions and server-side scripting

Pricing: Redis Cloud has a free 30 MB tier. Essentials starts at about $5 per month ($0.007 per hour) and Pro at $0.014 per hour with a $200 monthly minimum, billed on demand.

Read more about RedisWebsiteGitHub#1 Azure Cosmos DB alternative

TiDB

An open-source, MySQL-compatible distributed SQL database with horizontal scaling, ACID transactions, Raft-based high availability and support for analytics and vector search.

GitHub stars
41k
Last commit
today
Latest release
v7.5.8
Licence
Apache-2.0
Self-hosted
Yes
Hosted version
Available
tidb.ioTiDB homepage screenshot

TiDB is a cloud-native, open-source distributed SQL database from PingCAP. The name's Ti stands for titanium, and it is built for high availability, strong consistency and the ability to scale out as data and traffic grow, while staying compatible with MySQL so existing applications and tools can connect with little change.

Distributed transactions use a two-phase commit protocol to keep ACID guarantees even across nodes, through network partitions or node failures. It scales horizontally by adding nodes or vertically by adding resources, without downtime, and its architecture separates compute from storage so each can be adjusted independently. Built-in Raft consensus keeps multiple replicas in sync and handles automated failover. Topics also mention HTAP workloads, analytics and native vector search.

TiDB is written in Go under the Apache-2.0 license. It can be deployed on your own infrastructure or consumed as a managed cloud service, and it suits teams that have outgrown a single MySQL server and want horizontal scale without sharding by hand.

Key features

  • MySQL-compatible distributed SQL
  • Distributed ACID transactions
  • Horizontal and vertical scaling without downtime
  • Separated compute and storage layers
  • Raft-based replication and automated failover
  • Analytics and vector search support

Pricing: TiDB Community is free and Cloud Starter has a monthly free quota. Cloud Premium starts from $1800 per month and Dedicated from $0.22 per hour; Self-Managed is priced on request.

Read more about TiDBWebsiteGitHub#2 Azure Cosmos DB alternative

SurrealDB

A multi-model database written in Rust that combines document, graph, relational, time-series and vector data with real-time features, from embedded use to distributed clusters.

GitHub stars
33k
Last commit
4 days ago
Latest release
v4.0.1
Self-hosted
Yes
Hosted version
Available
surrealdb.comSurrealDB homepage screenshot

SurrealDB is a Rust-based multi-model database that brings several data models into one engine: key-value, document, graph, relational, time-series and geospatial data. Search and retrieval options include full-text, vector and hybrid, and it adds real-time and event-driven capabilities, queried through its SQL-like language, SurrealQL.

Because it supports end-user authentication, SurrealDB can also act as a backend-as-a-service, reducing the amount of server-side code an app needs. It ships as a single Rust binary that can run embedded inside an application, in the browser via WebAssembly, at the edge, as a self-hosted single node, or as a distributed cluster in the cloud. Typical workloads include data-intensive systems that need several data types, storage for AI agents, knowledge graphs, live applications such as recommenders and fraud detection, and embedded or edge deployments.

The repository license is listed as 'Other' on GitHub, so confirm the terms before commercial use. SurrealDB also offers cloud-hosted database service, and topics tag it as a serverless, realtime database for the web.

Key features

  • Document, graph and relational models in one engine
  • Full-text, vector and hybrid search
  • Real-time and event-driven queries
  • Built-in user authentication
  • Single binary: embedded, edge or cluster
  • SurrealQL SQL-like query language

Pricing: The Start plan includes one free instance with 1GB of storage; extra instances are from $0.021 per hour. Scale is $0.192 per node hour with a three-node minimum; self-hosted Enterprise is custom.

Read more about SurrealDBWebsiteGitHub#3 Azure Cosmos DB alternative

MongoDB

The source repository for MongoDB, a document-oriented NoSQL database server written in C++, with sharding support and official drivers for most languages.

GitHub stars
29k
Last commit
today
Self-hosted
Yes
Hosted version
Available
mongodb.comMongoDB homepage screenshot

This repository holds the source of MongoDB, the document-oriented NoSQL database. It is written in C++ and contains the main server components: mongod, the database server, and mongos, the router used for sharded clusters. MongoDB stores flexible JSON-like documents rather than rows in fixed tables.

Most users install prebuilt packages rather than building from source. The README points to the community server download page, the mongodb-community-server Docker image and Homebrew taps, and also covers the MongoDB Shell, mongosh, and MongoDB Compass, a graphical client that can be installed with a packaged script. Client drivers exist for most programming languages, and RPM and Debian packages are produced by the build scripts. Documentation and a developer center help with learning.

The repository's license is listed as 'Other' on GitHub, so read the current license terms before building services on it. MongoDB can be run on your own infrastructure, and MongoDB Inc. also operates a managed cloud service. It is widely used as a general-purpose database for applications with evolving schemas.

Key features

  • Document-oriented NoSQL database server
  • mongos router for sharded clusters
  • MongoDB Shell and Compass GUI
  • Official drivers for most languages
  • Docker image and Homebrew packages
  • RPM and Debian packaging scripts
Read more about MongoDBWebsiteGitHub#4 Azure Cosmos DB alternative

Neo4j

A graph database that stores data as connected nodes and relationships and is queried with the Cypher language, widely used for highly connected data.

GitHub stars
17k
Last commit
7 days ago
Latest release
3.2.0-alpha08
Licence
GPL-3.0
Self-hosted
Yes
Hosted version
Available
neo4j.comNeo4j homepage screenshot

Neo4j is a graph database written in Java. Instead of tables, it stores data as nodes and relationships, which makes it a good fit for problems where the connections between records matter, such as social networks, fraud detection, recommendations and knowledge graphs. Data is queried with Cypher, the graph query language associated with the project.

The repository contains the open-source community edition of the database engine. Topics tag it as a NoSQL graph database and graphdb, and the project's tagline is simply that graphs are for everyone. The repository's homepage could not be fetched while preparing this entry, so details here are limited to the repository description and widely known facts about the product.

The community edition is licensed under GPL-3.0, while commercial editions with additional enterprise features and a managed cloud service are sold by Neo4j, Inc. You can run the database on your own servers or use the hosted service. It is aimed at developers and data teams modeling relationship-heavy data.

Key features

  • Native graph storage with nodes and relationships
  • Cypher query language
  • NoSQL graph database engine
  • Community edition source code
  • Suited to connected-data problems

Pricing: A free AuraDB tier exists. Professional starts at $0.09 per GB per hour and Business Critical at $0.20 per GB per hour; Virtual Dedicated Cloud is quoted on request.

Read more about Neo4jWebsiteGitHub#5 Azure Cosmos DB alternative

Dgraph

A horizontally scalable, distributed graph database with native GraphQL support, ACID transactions and consistent replication, written in Go.

GitHub stars
22k
Last commit
7 days ago
Latest release
v25.5.1
Licence
Apache-2.0
Self-hosted
Yes
dgraph.ioDgraph homepage screenshot

Dgraph is a distributed database that stores data as a graph while exposing it through GraphQL. It scales horizontally across machines and offers ACID transactions, consistent replication and linearizable reads, so a cluster behaves predictably even as it grows.

The project was built from scratch around the way graph data is laid out on disk, which it says reduces disk seeks and network calls in a cluster and improves query performance and throughput. The stated aim is production-level scale with latency low enough to answer live user queries across terabytes of structured data. Clients send queries in GraphQL syntax and receive JSON or Protocol Buffers over gRPC and HTTP. Topics point to uses such as knowledge graphs.

Dgraph is written in Go and licensed under Apache-2.0. The README describes it as production-ready at version 25 and in use at multiple large companies, and it officially supports Linux on amd64 and arm64 architectures. It is a fit for teams modeling highly connected data, such as social graphs, recommendations or knowledge bases, who also want a GraphQL API.

Key features

  • Native GraphQL database with graph backend
  • ACID transactions across a cluster
  • Consistent replication and linearizable reads
  • Horizontal scaling and distribution
  • JSON and Protocol Buffers responses
  • gRPC and HTTP APIs

Pricing: Free and open source under the Apache-2.0 license.

Read more about DgraphWebsiteGitHub#6 Azure Cosmos DB alternative

ScyllaDB

A high-throughput C++ NoSQL database on the Seastar framework that speaks the Apache Cassandra and Amazon DynamoDB APIs.

GitHub stars
16k
Last commit
today
Self-hosted
Yes
Hosted version
Available
scylladb.comScyllaDB homepage screenshot

ScyllaDB is a NoSQL database that implements the Apache Cassandra and Amazon DynamoDB APIs, so existing applications and drivers for those systems can talk to it. It is written in C++ on the Seastar framework and is aimed at real-time big data workloads that need high throughput and predictable latency.

The project describes a shared-nothing approach in which each CPU core manages its own slice of data, which it says increases throughput and storage capacity per machine and cuts hardware costs. Building the database is demanding: it needs a very recent C++23 compiler and many up-to-date libraries, so the project offers a frozen toolchain as a pre-configured Docker image that includes everything required. You then only need Docker or Podman to compile it.

The repository's license is listed as 'Other' on GitHub, so confirm the current terms before using it commercially. You can run ScyllaDB on your own servers or consume it as a managed cloud service from the company. It suits teams that have outgrown Cassandra's resource footprint or want a DynamoDB-compatible database they can run themselves.

Key features

  • Compatible with the Cassandra API
  • Compatible with the DynamoDB API
  • Shared-nothing architecture on Seastar
  • C++ implementation for high throughput
  • Frozen Docker toolchain for building
  • Self-hosted or managed cloud

Pricing: ScyllaDB Cloud comes in Standard, Professional and Premium tiers with no list prices on the page; Standard is costed with an online calculator and the other two by quote. A self-managed edition is also listed.

Read more about ScyllaDBWebsiteGitHub#7 Azure Cosmos DB alternative

ArangoDB

A native multi-model database for documents, graphs and key-values, queried with an SQL-like language and including built-in search, available self-managed or as a cloud service.

GitHub stars
14k
Last commit
today
Self-hosted
Yes
Hosted version
Available
arangodb.comArangoDB homepage screenshot

ArangoDB is a multi-model database that stores documents, graphs and key-value data in a single engine. Instead of running separate systems for each data model, applications query connected data through one SQL-like language, with JavaScript extensions available for custom logic.

Every node in a graph is a JSON document, so existing document data can be imported and relationships can be queried across multiple levels of joins. ArangoSearch, an integrated search engine, adds text search and ranking. For scale and resilience the database can shard data horizontally across machines and replicate it to cluster nodes with automatic failover.

ArangoDB can be installed from a download or started in Docker, and runs on-premises or in any cloud. The Arango Managed Platform (AMP) creates deployments on major cloud providers and can be tried for free. A free Community Edition and a commercial Enterprise Edition without a dataset size limit are offered; the repository lists its license simply as Other, so check the terms before production use.

Key features

  • Document, graph and key-value data models
  • SQL-like query language
  • JavaScript extensions for custom logic
  • ArangoSearch full-text search and ranking
  • Horizontal scaling through sharding
  • Replication with automatic failover
  • Managed cloud deployments via AMP

Pricing: The Community Edition is open source and free for evaluation and non-commercial use. Enterprise Edition, the platform suites and the managed cloud are priced on request.

Read more about ArangoDBWebsiteGitHub#8 Azure Cosmos DB alternative

YugabyteDB

A PostgreSQL-compatible, cloud-native distributed SQL database for transactional workloads that need scale, fault tolerance or multi-region deployment.

GitHub stars
11k
Last commit
today
Latest release
v2026.1.3.0
Self-hosted
Yes
yugabyte.comYugabyteDB homepage screenshot

YugabyteDB is a distributed SQL database that is compatible with PostgreSQL. It combines the relational features of traditional databases with the scale-out design of NoSQL systems, and is intended for cloud-native OLTP applications that need correct data and at least one of scalability, tolerance to failures or global distribution.

Its SQL layer, YSQL, reuses the PostgreSQL query layer and so supports most PostgreSQL features, including data types, stored procedures, triggers and extensions. Its transaction model follows the design of Google Spanner, using Raft consensus for replication and hybrid logical clocks for distributed ACID transactions, with snapshot, serializable and read committed isolation. Reads are strongly consistent by default and can be tuned to read from followers and replicas.

The database can be configured to withstand failures at the level of a disk, rack, node, zone, region or whole cloud, recovering on its own, and the topics mention multi-region, multi-cloud and Kubernetes deployments. The project is written mainly in C and C++, the repository lists its license as Other, and documentation covers architecture, roadmap and how to build applications.

Key features

  • PostgreSQL-compatible SQL layer
  • Distributed ACID transactions
  • Replication using Raft consensus
  • Snapshot, serializable and read committed isolation
  • Automatic failover and repair
  • Multi-region and multi-cloud deployments
  • Kubernetes deployment support

Pricing: The open-source database is free. The managed Aeon service starts at $125 (Standard) or $167 (Professional) per vCPU per month plus storage and transfer, with a free trial; Enterprise is quoted.

Read more about YugabyteDBWebsiteGitHub#9 Azure Cosmos DB alternative

Neon

An open-source serverless Postgres platform that separates storage from compute to offer autoscaling, database branching and scale to zero.

GitHub stars
23k
Last commit
2 mo ago
Latest release
release-proxy-8853
Licence
Apache-2.0
Self-hosted
Yes
Hosted version
Available
neon.techNeon homepage screenshot

Neon is a serverless Postgres database platform that is open source. It separates storage from compute and replaces the PostgreSQL storage layer with one that distributes data across a cluster of nodes, which enables autoscaling, branching of databases in the style of code, and scaling down to zero.

A running Neon system is made up of compute nodes plus a dedicated storage engine. The compute nodes are stateless PostgreSQL instances backed by that engine, whose two main components are the Pageserver, a scalable storage backend for the compute nodes, and the Safekeepers, a redundant write-ahead-log service that keeps WAL durably until the Pageserver has processed it and uploaded it to cloud storage. Developer documentation describes the architecture in more detail.

The easiest way to try Neon is the hosted Neon Free Tier, connecting with psql, DBeaver or the online SQL editor. The project is also written in Rust and licensed under Apache-2.0 so you can compile and run it locally for experiments, with build instructions for Linux and macOS. It suits teams that want Postgres with branching for development workflows and elastic scaling.

Key features

  • Serverless Postgres with autoscaling
  • Separated storage and compute
  • Database branching for development
  • Scale to zero when idle
  • Pageserver and Safekeeper storage engine
  • Hosted free tier available

Pricing: Free plan has no time limit. Launch is usage-based at $0.106 per CU-hour plus $0.35 per GB-month of storage; Scale is $0.222 per CU-hour.

Read more about NeonWebsiteGitHub#10 Azure Cosmos DB alternative

7 more Azure Cosmos DB alternatives

Commercial Azure Cosmos DB alternatives

Hosted, closed-source products that compete with Azure Cosmos DB. Showing 12 of 25.

See every Azure Cosmos DB alternative on its tool page

Azure Cosmos DB alternatives: questions

What is the best open-source alternative to Azure Cosmos DB?
Redis is the top-ranked open-source alternative to Azure Cosmos DB on Enlisted: An in-memory data store used as a cache, session store, data structure server, message broker and vector query engine for real-time applications. Other strong options are TiDB, SurrealDB, MongoDB and Neo4j.
What are the best commercial alternatives to Azure Cosmos DB?
Amazon DynamoDB, Amazon Aurora, MongoDB Atlas, Google Cloud Spanner and Instaclustr are among the hosted, closed-source alternatives to Azure Cosmos DB listed on Enlisted, which lists 25 in total. Compare their pricing and features on each tool page.
Are these Azure Cosmos DB alternatives free?
All 17 are open source, so the code is free to use under its licence, and all of them can be self-hosted on your own server or computer. 10 also offer a paid or managed cloud version if you'd rather not host it yourself.
How is this list of Azure Cosmos DB alternatives ranked?
By a score built from GitHub stars, star growth over the last 30 days and how recently the code changed. 16 of these projects shipped code in the last 30 days. Data is refreshed daily, and nobody can pay to move up.

People also look for alternatives to…

View all