DB-EnginesInfluxDB: Focus on building software with an easy-to-use serverless, scalable time series platformEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > CockroachDB vs. MongoDB vs. Riak KV

System Properties Comparison CockroachDB vs. MongoDB vs. Riak KV

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameCockroachDB  Xexclude from comparisonMongoDB  Xexclude from comparisonRiak KV  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 infrastructureDistributed, fault tolerant key-value store
Primary database modelRelational DBMSDocument storeKey-value store infowith links between data sets and object tags for the creation of secondary indexes
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.63
Rank#60  Overall
#32  Relational DBMS
Score493.55
Rank#5  Overall
#1  Document stores
Score5.88
Rank#63  Overall
#8  Key-value stores
Websitewww.cockroachlabs.comwww.mongodb.comriak.com/­products/­riak-kv
Technical documentationwww.cockroachlabs.com/­docsdocs.mongodb.com/­manual
DeveloperCockroach LabsMongoDB, IncBasho Technologies
Initial release201520092009
Current release21.1.2, June 20215.0, July 20212.1.0, April 2015
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.Open Source infoApache version 2, commercial enterprise edition
Cloud-based only infoOnly available as a cloud servicenono infoMongoDB available as DBaaS (MongoDB Atlas)no
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++Erlang
Server operating systemsLinux
macOS
Windows
Linux
OS X
Solaris
Windows
Linux
OS X
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.schema-free
Typing infopredefined data types such as float or dateyesyes infostring, integer, double, decimal, boolean, date, object_id, geospatialno
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.nono
Secondary indexesyesyesrestricted
SQL infoSupport of SQLyes, wire compatible with PostgreSQLRead-only SQL queries via the MongoDB Connector for BIno
APIs and other access methodsJDBCproprietary protocol using JSONHTTP API
Native Erlang Interface
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
C infounofficial client library
C#
C++ infounofficial client library
Clojure infounofficial client library
Dart infounofficial client library
Erlang
Go infounofficial client library
Groovy infounofficial client library
Haskell infounofficial client library
Java
JavaScript infounofficial client library
Lisp infounofficial client library
Perl infounofficial client library
PHP
Python
Ruby
Scala infounofficial client library
Smalltalk infounofficial client library
Server-side scripts infoStored proceduresnoJavaScriptJavaScript and Erlang
Triggersnoyes infoin MongoDB Atlas onlyyes infopre-commit hooks and post-commit hooks
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.Sharding infono "single point of failure"
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication using RAFTMulti-Source deployments with MongoDB Atlas Global Clusters
Source-replica replication
selectable replication factor
MapReduce infoOffers an API for user-defined Map/Reduce methodsnoyesyes
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyEventual Consistency
Immediate Consistency infocan be individually decided for each write operation
Eventual Consistency
Foreign keys infoReferential integrityyesno infotypically not used, however similar functionality with DBRef possibleno infolinks between data sets can be stored
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDMulti-document ACID Transactions with snapshot isolationno
Concurrency infoSupport for concurrent manipulation of datayesyesyes
Durability infoSupport for making data persistentyesyes infooptional, enabled by defaultyes
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 rolesno
More information provided by the system vendor
CockroachDBMongoDBRiak KV
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.5K+ long-running clusters 1.5K+ CockroachDB Enterprise clusters 6.5K+ CockroachCloud...
» 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

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 partiesCData: Connect to Big Data & NoSQL through standard Drivers.
» more

ClusterControl: the only management system you’ll ever need to take control of your open source database infrastructure.
» more

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

Navicat for MongoDB gives you a highly effective GUI interface for MongoDB database management, administration and development.
» 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
CockroachDBMongoDBRiak KV
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 & Google Cloud Developer Summit
Virtual Event, 28 October 2021

MongoDB.Local London
London, 9 November 2021

Finished events

Introduction to MongoDB
Webinar, on demand, 27 July 2021 (finished)

Recent citations in the news

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

Yugabyte's double-decker DBaaS follows Cochroach in distributed RDBMS
24 September 2021, The Register

The CockroachDB EC-1
15 July 2021, TechCrunch

Scaling CockroachDB in the red ocean of relational databases
15 July 2021, TechCrunch

The DL on CockroachDB
24 July 2021, TechCrunch

provided by Google News

MongoDB Joins LOT Network To Protect Open Innovation For Developers
19 October 2021, PRNewswire

How MongoDB Beat Amazon
8 October 2021, The Motley Fool

How to Create Documents in MongoDB
13 October 2021, MakeUseOf

How Atlas Is Driving MongoDB's Growth
7 October 2021, Motley Fool

MongoDB to redeem all of its outstanding convertible senior notes due 2024
1 October 2021, Seeking Alpha

provided by Google News

Is Riak A Good NoSQL Database Option?
1 July 2019, Analytics India Magazine

Basho open-sources its Riak TS database for the Internet Of Things
5 May 2016, TechCrunch

Burt's big game leads Steel Valley past Ligonier Valley | Trib HSSN
2 October 2021, TribLIVE

Riak NoSQL Database: Use Cases and Best Practices
23 December 2011, InfoQ.com

Riak KV NoSQL DBMS overview
29 July 2015, TechTarget

provided by Google News

Job opportunities

Revenue Enablement Specialist, Remote, US
Cockroach Labs, Remote

Senior Software Engineer
Netflix, Remote

Salesforce Administrator, Remote, US
Cockroach Labs, Remote

Senior Backend Engineer
Prysm, Remote

Staff Technical Writer
Cockroach Labs, United States

MongoDB Admin
OKAY INTERNATIONAL, St. Louis, MO

MongoDB _ Remote (Till Covid)
Teksky, United States

Director, Credentialing - NYC/Charlotte/Remote
Nomad Health, Remote

Backend Developer (Python/MongoDB)
Irisidea TechSolutions Pvt Ltd, Remote

MongoDB
State Tech, Remote

Physician Educator Health Plan
UPMC, Pittsburgh, PA

DevOps Engineer
HealthVerity, Remote

Cloud Support Engineer I - Databases
Amazon Web Services, Inc., Seattle, WA

JPC - 434 - Backend Engineer
Promantis Inc, New York, NY

Senior Software Engineer
Infor, Remote

jobs by Indeed



Share this page

Featured Products

Couchbase logo

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

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

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..

Vertica logo

Vertica Accelerator. The fastest analytics and machine learning, delivered as SaaS, with automated setup, administration, and management. Free trial.

Neo4j logo

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

Present your product here