DB-EnginesExtremeDB: the first and only COTS deterministic embedded database management system for mission- and safety-critical hard real-time applicationsEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > CockroachDB vs. MongoDB

System Properties Comparison CockroachDB vs. MongoDB

Please select another system to include it in the comparison.

Our visitors often compare CockroachDB and MongoDB with PostgreSQL, MySQL and Cassandra.

Editorial information provided by DB-Engines
NameCockroachDB  Xexclude from comparisonMongoDB  Xexclude from comparison
DescriptionCockroachDB is a distributed database architected for modern cloud applications. It is wire compatible with PostgreSQL and backed by a Key-Value Store, which is either RocksDB or a purpose-built derivative, called Pebble.One of the most popular document stores available both as a fully managed cloud service and for deployment on self-managed infrastructure
Primary database modelRelational DBMSDocument store
Secondary database modelsSpatial DBMS
Search engine infointegrated Lucene index, currently in MongoDB Atlas only.
Time Series DBMS infoTime Series Collections introduced in Release 5.0
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score6.97
Rank#58  Overall
#32  Relational DBMS
Score488.57
Rank#5  Overall
#1  Document stores
Websitewww.cockroachlabs.comwww.mongodb.com
Technical documentationwww.cockroachlabs.com/­docsdocs.mongodb.com/­manual
DeveloperCockroach LabsMongoDB, Inc
Initial release20152009
Current release21.1.2, June 20215.0.5, December 2021
License infoCommercial or Open SourceOpen Source infoApache 2.0, commercial license availableOpen Source infoMongoDB Inc.'s Server Side Public License v1. Prior versions were published under GNU AGPL v3.0. Commercial licenses are also available.
Cloud-based only infoOnly available as a cloud servicenono infoMongoDB available as DBaaS (MongoDB Atlas)
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
CockroachCloud: Get your applications to market faster with a fully managed CockroachDB instance. Leave the daily maintenance, security, and operations of your database to us, and spend more time building apps and running your business.
  • MongoDB Atlas: Global multi-cloud database with unmatched data distribution and mobility across AWS, Azure, and Google Cloud, built-in automation for resource and workload optimization, and so much more.
  • ScaleGrid for MongoDB: Fully managed hosting for MongoDB database on AWS, Azure and DigitalOcean with high availability and SSH access on the #1 multi-cloud DBaaS.
Implementation languageGoC++
Server operating systemsLinux
macOS
Windows
Linux
OS X
Solaris
Windows
Data schemedynamic schemaschema-free infoAlthough schema-free, documents of the same collection often follow the same structure. Optionally impose all or part of a schema by defining a JSON schema.
Typing infopredefined data types such as float or dateyesyes infostring, integer, double, decimal, boolean, date, object_id, geospatial
XML support infoSome form of processing data in XML format, e.g. support for XML data structures, and/or support for XPath, XQuery or XSLT.no
Secondary indexesyesyes
SQL infoSupport of SQLyes, wire compatible with PostgreSQLRead-only SQL queries via the MongoDB Connector for BI
APIs and other access methodsJDBCproprietary protocol using JSON
Supported programming languagesC#
C++
Clojure
Go
Java
JavaScript (Node.js)
PHP
Python
Ruby
Rust
Actionscript infounofficial driver
C
C#
C++
Clojure infounofficial driver
ColdFusion infounofficial driver
D infounofficial driver
Dart infounofficial driver
Delphi infounofficial driver
Erlang
Go
Groovy infounofficial driver
Haskell
Java
JavaScript
Lisp infounofficial driver
Lua infounofficial driver
MatLab infounofficial driver
Perl
PHP
PowerShell infounofficial driver
Prolog infounofficial driver
Python
R infounofficial driver
Ruby
Rust
Scala
Smalltalk infounofficial driver
Swift
Server-side scripts infoStored proceduresnoJavaScript
Triggersnoyes infoin MongoDB Atlas only
Partitioning methods infoMethods for storing different data on different nodeshorizontal partitioning (by key range) infoall tables are translated to an ordered KV store and then broken down into 64MB ranges, which are then used as replicas in RAFTSharding infoPartitioned by hashed, ranged, or zoned sharding keys. Live resharding allows users to change their shard keys as an online operation with zero downtime.
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication using RAFTMulti-Source deployments with MongoDB Atlas Global Clusters
Source-replica replication
MapReduce infoOffers an API for user-defined Map/Reduce methodsnoyes
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyEventual Consistency
Immediate Consistency infocan be individually decided for each write operation
Foreign keys infoReferential integrityyesno infotypically not used, however similar functionality with DBRef possible
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDMulti-document ACID Transactions with snapshot isolation
Concurrency infoSupport for concurrent manipulation of datayesyes
Durability infoSupport for making data persistentyesyes infooptional, enabled by default
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.noyes infoIn-memory storage engine introduced with MongoDB version 3.2
User concepts infoAccess controlRole-based access controlAccess rights for users and roles
More information provided by the system vendor
CockroachDBMongoDB
Specific characteristicsCockroachDB is a cloud-native, distributed SQL database architected for modern applications....
» more
MongoDB’s application data platform provides developers a unified interface to power...
» more
Competitive advantages- EFFORTLESS SCALE: Scale your applications, not operational complexity. CockroachDB...
» more
The MongoDB platform can be used by developers building transactional, operational,...
» more
Typical application scenariosSystem of record (financial ledger, inventory management, transaction record), identity...
» more
Internet of Things and Time Series (Bosch, Jaguar Land Rover) Mobile (The Weather...
» more
Key customersComcast, eBay, DoorDash, Mythical Games, Norfolk Southern, LUSH, Bose, Shipt, MyDoc,...
» more
ADP, Adobe, Amadeus, AstraZeneca, Auto Trader, Barclays, BBVA, Bosch, Cisco, CERN,...
» more
Market metrics6.7K+ long-running clusters 2.2K+ CockroachDB Self-Hosted clusters 10.5K+ CockroachDB...
» more
175 million downloads, over 1.5M Atlas database clusters under management handling...
» more
Licensing and pricing models- Apache 2.0 for core features released up to and including the 19.1 release - Time-limited...
» more
MongoDB database server: Server-Side Public License (SSPL) . Commercial licenses...
» more
Related products and services
3rd partiesStudio 3T: The world's favorite IDE for working with MongoDB
» more

CData: Connect to Big Data & NoSQL through standard Drivers.
» more

Navicat for MongoDB gives you a highly effective GUI interface for MongoDB database management, administration and development.
» more

Fivetran: Quickly and easily centralize your on-premise and cloud databases.
» more

We invite representatives of vendors of related products to contact us for presenting information about their offerings here.

More resources
CockroachDBMongoDB
DB-Engines blog posts

Snowflake is the DBMS of the Year 2021
3 January 2022, Paul Andlinger, Matthias Gelbmann

PostgreSQL is the DBMS of the Year 2020
4 January 2021, Paul Andlinger, Matthias Gelbmann

PostgreSQL is the DBMS of the Year 2018
2 January 2019, Paul Andlinger, Matthias Gelbmann

show all

Recent citations in the news

Cockroach Labs Raises Another $278M for its Cloud-Native Database at a $5B Valuation
23 December 2021, AlleyWatch

Cockroach Labs Wants to Take on AWS
13 January 2022, Bloomberg

Cockroach Labs Introduces CockroachDB Serverless: Build What You Dream and Never Worry about the Database
19 October 2021, PRNewswire

CockroachDB, the database that just won't die
15 July 2021, TechCrunch

CockroachDB update scales distributed SQL database
16 November 2021, TechTarget

provided by Google News

MongoDB Poaches Top Amazon Executives to Compete With AWS
21 December 2021, Bloomberg

MongoDB's Mark Porter on Database Trends and the 'Innovation Tax' | eWEEK
11 January 2022, eWeek

MDB: MongoDB vs. Snowflake: Which SaaS Stock Is a Better Buy?
19 January 2022, StockNews.com

Why Snowflake, CrowdStrike, and MongoDB Crashed at the Open, Then Recovered
10 January 2022, The Motley Fool

MongoDB: The Great Unwinding Is Happening Now
6 January 2022, Seeking Alpha

provided by Google News

Job opportunities

Senior Software Engineer
Netflix, Remote

Backend Engineer (US)
17LIVE, Los Angeles, CA

Financial Analyst
Cockroach Labs, United States

Data Engineer
Mythical Games, California

Full Stack Engineer - Marketplace
Array, Remote

MongoDB
State Tech, Remote

Database Admin
New American Funding, Remote

Node.js and MongoDB Developer - Remote
Vitira, Remote

ReactJS/ NodeJS Developer
Ampcus, Remote

Java Developer with MongoDB Experience
Simplex info systems Inc,, Austin, TX

jobs by Indeed



Share this page

Featured Products

Neo4j logo

See for yourself how a graph database can make your life easier.
Use Neo4j online for free.

Datastax Astra logo

Build cloud-native apps fast with Astra, the open-source, multi-cloud stack for
modern data apps.
Get started with 80GB free.

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

AllegroGraph logo

Graph Database Leader for AI Knowledge Graph Applications - The Most Secure Graph Database Available.
Free Download

Couchbase logo

The modern database for enterprise applications. Build fast. Scale Big. Save more.
Get started today.

Present your product here