DB-EnginesExtremeDB: the embedded DBMS for embedded systemsEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > CockroachDB vs. FoundationDB vs. MongoDB

System Properties Comparison CockroachDB vs. FoundationDB vs. MongoDB

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameCockroachDB  Xexclude from comparisonFoundationDB  Xexclude from comparisonMongoDB  Xexclude from comparison
Created as commercial project in 2013, FoundationDB has been acquired by Apple in March 2015 and was withdrawn from the market. As a consequence, the product was removed from the DB-Engines ranking. In April 2018, Apple open-sourced FoundationDB and it therefore reappears in the ranking.
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.Ordered key-value store. Core features are complimented by layers.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 infosupported via specific layer
Key-value store
Relational DBMS infosupported via specific SQL-layer
Document store
Secondary database modelsSpatial DBMS
Search engine infointegrated Lucene index, currently in MongoDB Atlas only.
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score6.06
Rank#59  Overall
#33  Relational DBMS
Score1.21
Rank#155  Overall
#26  Document stores
#28  Key-value stores
#76  Relational DBMS
Score481.01
Rank#5  Overall
#1  Document stores
Websitewww.cockroachlabs.comwww.foundationdb.orgwww.mongodb.com
Technical documentationwww.cockroachlabs.com/­docsapple.github.io/­foundationdbdocs.mongodb.com/­manual
DeveloperCockroach LabsFoundationDBMongoDB, Inc
Initial release201520132009
Current release20.2, November 20206.2.28, November 20204.4.5, April 2021
License infoCommercial or Open SourceOpen Source infoApache 2.0, commercial license availableOpen Source infoApache 2.0Open 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 servicenonono 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: the global and fully-managed cloud database service from the makers of MongoDB. Deploy across AWS, Azure, or GCP.
  • 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++C++
Server operating systemsLinux
macOS
Windows
Linux
OS X
Windows
Linux
OS X
Solaris
Windows
Data schemedynamic schemaschema-free infosome layers support schemasschema-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 dateyesno infosome layers support typingyes 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 indexesyesnoyes
SQL infoSupport of SQLyes, wire compatible with PostgreSQLsupported in specific SQL layer onlyRead-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
.Net
C
C++
Go
Java
JavaScript infoNode.js
PHP
Python
Ruby
Swift
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 proceduresnoin SQL-layer onlyJavaScript
Triggersnonoyes 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 RAFTShardingSharding infopartitioned by hashed, ranged, or zoned sharding keys
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication using RAFTyesMulti-Source deployments with MongoDB Atlas Global Clusters
Source-replica replication
MapReduce infoOffers an API for user-defined Map/Reduce methodsnonoyes
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyLinearizable consistencyEventual Consistency
Immediate Consistency infocan be individually decided for each write operation
Foreign keys infoReferential integrityyesin SQL-layer onlyno infotypically not used, however similar functionality with DBRef possible
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDACIDMulti-document ACID Transactions with snapshot isolation
Concurrency infoSupport for concurrent manipulation of datayesyesyes
Durability infoSupport for making data persistentyesyesyes infooptional
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 controlnoAccess rights for users and roles
More information provided by the system vendor
CockroachDBFoundationDBMongoDB
Specific characteristicsCockroachDB is a cloud-native, distributed SQL database architected for modern applications....
» more
MongoDB is the leading modern, general purpose data platform, designed to unleash...
» 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, SpaceX, eBay, DoorDash, Mythical Games, Norfolk Southern, LUSH, Bose, Kindred,...
» more
ADP, Adobe, Amadeus, AstraZeneca, Auto Trader, Barclays, BBVA, Bosch, Cisco, CERN,...
» more
Market metrics8K+ long-running clusters 900+ CockroachDB Enterprise clusters 2K+ CockroachCloud...
» more
125 million downloads (growing at more than 30 thousand downloads per day), over...
» 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

We invite representatives of system vendors to contact us for updating and extending the system information,
and for displaying vendor-provided information such as key customers, competitive advantages and market metrics.

Related products and services
3rd partiesClusterControl: the only management system you’ll ever need to take control of your open source database infrastructure.
» more

Datadog: Visualize all your MongoDB metrics.
» 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

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

Studio 3T: The world's favorite IDE for working with MongoDB
» more

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

More resources
CockroachDBFoundationDBMongoDB
DB-Engines blog posts

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

PostgreSQL moves up one rank at the expense of MongoDB
1 September 2016, Paul Andlinger

show all

Conferences and events

MongoDB, Back to Basics
Webinar Recording, 27 April 2021 - 27 May 2021

Recent citations in the news

Cockroach Labs Ranks Among Highest-Scoring Businesses On Inc. magazine's Annual List Of Best Workplaces For 2021
12 May 2021, PRNewswire

Cockroach Labs releases CockroachDB 20.2, Strengthens Position as Ideal Database for Modern Cloud Applications
10 November 2020, PRNewswire

CockroachDB Available in Microsoft Azure Marketplace
16 February 2021, PRNewswire

Cockroach Labs Simplifies Adding a Database to Kubernetes
17 November 2020, PRNewswire

CockroachDB creator Cockroach Labs raises $160 million at a $2 billion valuation
12 January 2021, VentureBeat

provided by Google News

Key Value Database Market Proceeds To Witness Huge Upswing Over Assessment Period by 2030 – The Courier
11 May 2021, The Courier

FoundationDB, a very interesting NoSQL database owned by Apple, is now an open-source project
19 April 2018, GeekWire

Apple Acquires Durable Database Company FoundationDB
24 March 2015, TechCrunch

Key Value Database Market Analysis 2025 by Current Industry Status & Growth Opportunities, Top Companies – The Apache Software Foundation, Memcached, Redis Labs, Couchbase, Amazon Web Services (AWS), Aerospike, Microsoft, ArangoDB, Dat
15 May 2021, Brockville Observer

FoundationDB's Record Layer Supports Relational Database Semantics, Schema Management and Indexing
10 February 2019, InfoQ.com

provided by Google News

Why MongoDB Stock Just Popped
14 May 2021, The Motley Fool

Software Stocks Snowflake and MongoDB Rally on Bullish Goldman Sachs Call
14 May 2021, Barron's

MongoDB, Inc. Announces Date of First Quarter Fiscal 2022 Earnings Call
13 May 2021, Yahoo Finance

Implementing MongoDB: 6 Things to Know Beforehand
27 April 2021, TechDay News

Mongita Embedded MongoDB Alternative Announced
29 April 2021, iProgrammer

provided by Google News

Job opportunities

Customer Success Manager
Cockroach Labs, Intake, MT

Software Engineering Lead (Remote-US only)
Soteria LLC, Remote

Channel Account Manager
Cockroach Labs, Cloud, IA

Technical Support Engineer
Cockroach Labs, United States

Account Executive, Washington, DC
Cockroach Labs, Washington, DC

Database Administrator with MongoDB--100% Remote Position
Pentrogon security, Remote

Software Engineer Internship
WebFX, Inc., Harrisburg, PA

Data Scientist
ForMotiv, Remote

Backend Software Engineering Intern
Smarttwigs, Remote

Looking for an entry-level or graduate job?
Unibuddy, New York, NY

jobs by Indeed




Share this page

Featured Products

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

Couchbase logo

SQL + JSON + NoSQL.
Power, flexibility & scale.
All open source.
Get started now.

Neo4j logo

Get your free copy of the new O'Reilly book Graph Algorithms with 20+ examples for
machine learning, graph analytics and more.

Vertica logo

The fastest unified analytical warehouse at extreme scale with in-database Machine Learning. Try Vertica for free with no time limit.

Datastax Astra logo

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

Present your product here