| Data and transactions |
| Data model |
R1 Documents with exact types (int64, decimal128, dates…); optional JSON Schema validators |
Documents with a flexible schema; optional schema validation |
Schemaless documents, plus counters, attachments, time series and revisions |
Partitioned tables with a schema defined in CQL |
| Transactions |
R1 ACID across documents, collections and databases on a nodeR3 Distributed transactions across shards |
Single-document operations are atomic; multi-document ACID transactions across collections, databases and shards |
ACID transactions within one request; optional cluster-wide transactions (Raft) |
Atomic and isolated within one partition; lightweight transactions (Paxos compare-and-set); no multi-partition transactions in 5.0 |
| Isolation |
R1 SERIALIZABLE by default; SNAPSHOT or READ COMMITTED per transaction |
Snapshot isolation for transactions that use read concern "snapshot"; the default read concern is "local" |
Serializable for writes, snapshot for reads; indexes are eventually consistent (BASE) |
Isolation only within a single partition |
| Consistency |
R1 One node: every read sees all committed writesR2 Raft majority writes, linearizable reads by defaultPlanned Follower and bounded-staleness reads |
Read and write concerns per operation, write concern "majority" by default; causally consistent sessions |
Asynchronous replication between nodes, so conflicts are possible; cluster-wide transactions favour consistency |
Tunable per operation (ONE, QUORUM, ALL…); replicas converge eventually |
| Query language |
R1 RGQL and a structured form for driversR2 Aggregation pipeline |
MongoDB Query API and aggregation pipeline |
RQL, a SQL-like query language |
CQL |
| Secondary indexes |
R1 Single-field, compound, multikey, unique, sparse, partial and wildcard, updated in the same transaction as the data |
Single-field, compound, multikey, text, geospatial, wildcard and hashed |
User-defined static indexes and automatic indexes created by the query optimizer, updated asynchronously |
Storage-Attached Indexing (SAI) and legacy secondary indexes, consistent with their local replica |
| Scale and operations |
| Replication and high availability |
R2 Three-node Raft replication with automatic failover |
Replica sets with automatic failover by election |
Database group: every member holds a full copy, multi-master replication |
Masterless replication with a configurable replication factor; no single point of failure |
| Sharding and scale-out |
R3 Automatic sharding |
Native sharding |
Sharding since 6.0; shards on several nodes need the Enterprise licence |
Partitioning on a consistent-hashing token ring with virtual nodes |
| Multiple data centres |
Planned Multi-region placement (extension tier, scope open) |
Replica set members across data centres; zone sharding |
External replication and Hub/Sink replication to other sites |
Replication factor per data centre (NetworkTopologyStrategy) |
| Backup and point-in-time recovery |
R1 Online backup, point-in-time recovery and logical dump, built in (single node)R3 Cluster-wide and incremental backups |
Community: mongodump and file-system snapshots; point-in-time recovery with Cloud Manager or Ops Manager (Enterprise Advanced) |
Scheduled full and incremental backups to local, S3, Azure, Google Cloud or FTP targets; snapshot backups need Enterprise |
Snapshots and incremental backups with nodetool (incremental off by default); point-in-time restore through commit log archiving |
| Security |
| Authentication |
R1 SCRAM-SHA-256, API keys, X.509 client certificatesR3 OIDC sign-in |
Community: SCRAM and X.509; Enterprise adds Kerberos, LDAP and OIDC |
X.509 client certificates |
Password authentication available, off by default |
| TLS |
R1 TLS 1.3 with rustegon init --tls; a single node starts in plain text and warnsR2 Mandatory in a cluster, mutual TLS between nodes |
Supported, set with net.tls.mode |
HTTPS; a secure server is required for encryption at rest and the audit log |
Client and node-to-node TLS, off by default |
| Encryption at rest |
R1 AES-256-GCMR3 Key management services |
Enterprise and Atlas; Queryable Encryption and client-side field-level encryption (explicit mode in Community) |
Supported with a licence that includes it, on a secure server |
Not covered by the 5.0 security documentation |
| Access control |
R1 Built-in and custom roles, down to a single collection |
Role-based access control, off until enabled |
Cluster clearances and per-database access levels (Admin, Read/Write, Read Only) |
Roles and permissions, off by default |
| Audit log |
R1 Hash-chained audit log |
Enterprise and Atlas (M10 and larger) |
On a secure server |
Built-in audit logging, configurable |
| Ecosystem |
| Licence |
R1 Apache-2.0 |
Community: SSPL; commercial Enterprise edition |
Source under AGPLv3; Community licence with limits, Professional and Enterprise licences |
Apache-2.0 |
| Drivers |
R1 .NET and JavaImplemented · not yet published Node.js, Python, Go and Rust |
Official drivers for 13 languages, including C, C++, C#, Go, Java, Kotlin, Node.js, PHP, Python, Ruby, Rust and Scala |
Official clients for .NET, Java, Node.js, Python, Go, PHP, C++ and Ruby |
Client drivers for many languages listed in the documentation |
| Graphical console |
R1 Web console built into the server at /ui |
MongoDB Compass, a free desktop application |
RavenDB Studio, a web UI built into the server |
cqlsh shell; graphical tools from third parties |
| Deployment |
R1 Docker image and archives for Windows and Linux, unsigned development builds; no managed service |
Packages for Linux, Windows and macOS, Docker image, Kubernetes operator; MongoDB Atlas managed service |
Linux, macOS, Windows, containers, Raspberry Pi; RavenDB Cloud managed service |
Tarball, Debian and RPM packages, Docker image |