DB-EnginesExtremeDB: the mission critical dbmsEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > CockroachDB vs. Derby vs. MongoDB

System Properties Comparison CockroachDB vs. Derby vs. MongoDB

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameCockroachDB  Xexclude from comparisonDerby infooften called Apache Derby, originally IBM Cloudscape; contained in the Java SDK as JavaDB  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.Full-featured RDBMS with a small footprint, either embedded into a Java application or used as a database server.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 DBMSRelational 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.69
Rank#64  Overall
#35  Relational DBMS
Score6.86
Rank#61  Overall
#34  Relational DBMS
Score436.61
Rank#5  Overall
#1  Document stores
Websitewww.cockroachlabs.comdb.apache.org/­derbywww.mongodb.com
Technical documentationwww.cockroachlabs.com/­docsdb.apache.org/­derby/­manuals/­index.htmldocs.mongodb.com/­manual
DeveloperCockroach LabsApache Software FoundationMongoDB, Inc
Initial release201519972009
Current release23.1.1, May 202310.16.1.1, May 20226.0.5, March 2023
License infoCommercial or Open SourceOpen Source infoApache 2.0, commercial license availableOpen Source infoApache version 2Open 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.
CockroachDB: A cloud-native, distributed SQL database designed for speed, scale, and survival. Get started for free today with a fully-managed CockroachDB cluster -- leave operations behind and get your app to market faster.
  • 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 Database: Fully managed hosting for MongoDB Database on a wide variety of cloud providers and On-Premises. Automate your management, scaling and backups through one centralized platform.
Implementation languageGoJavaC++
Server operating systemsLinux
macOS
Windows
All OS with a Java VMLinux
OS X
Solaris
Windows
Data schemedynamic schemayesschema-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 dateyesyesyes 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.noyes
Secondary indexesyesyesyes
SQL infoSupport of SQLyes, wire compatible with PostgreSQLyesRead-only SQL queries via the MongoDB Connector for BI
APIs and other access methodsJDBCJDBCproprietary protocol using JSON
Supported programming languagesC#
C++
Clojure
Go
Java
JavaScript (Node.js)
PHP
Python
Ruby
Rust
JavaActionscript 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 proceduresnoJava Stored ProceduresJavaScript
Triggersnoyesyes 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 RAFTnoneSharding 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 RAFTSource-replica replicationMulti-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 ConsistencyImmediate ConsistencyEventual Consistency
Immediate Consistency infocan be individually decided for each write operation
Foreign keys infoReferential integrityyesyesno 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, enabled by default
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.noyesyes infoIn-memory storage engine introduced with MongoDB version 3.2
User concepts infoAccess controlRole-based access controlfine grained access rights according to SQL-standardAccess rights for users and roles
More information provided by the system vendor
CockroachDBDerby infooften called Apache Derby, originally IBM Cloudscape; contained in the Java SDK as JavaDBMongoDB
Specific characteristicsCockroachDB is a cloud-native, distributed SQL database architected for modern applications....
» more
MongoDB provides an integrated suite of cloud database and data services to accelerate...
» more
Competitive advantages- EFFORTLESS SCALE: Scale your applications, not operational complexity. CockroachDB...
» more
Built around the flexible document data model and unified API, MongoDB is a developer...
» more
Typical application scenariosSystem of record (financial ledger, inventory management, transaction record), identity...
» more
Internet of Things and Time Series (Bosch, GE Healthcare, Jaguar Land Rover) Mobile...
» more
Key customersComcast, DoorDash, Mythical Games, Norfolk Southern, LUSH, Bose, Shipt, Bitski, Five9,...
» more
ADP, Adobe, Amadeus, AstraZeneca, Auto Trader, Barclays, BBVA, Bosch, Cisco, CERN,...
» more
Market metrics10K+ long-running clusters 25K+ CockroachDB self-hosted clusters 75K+ CockroachDB...
» more
365+ million downloads, over 150,000+ Atlas clusters provisioned every month 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 partiesNavicat for MongoDB gives you a highly effective GUI interface for MongoDB database management, administration and development.
» 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
CockroachDBDerby infooften called Apache Derby, originally IBM Cloudscape; contained in the Java SDK as JavaDBMongoDB
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

CockroachDB now supports Microsoft Azure, multiregion deployments
16 May 2023, InfoWorld

MariaDB's Xpand offers PostgreSQL compatibility without the forking drama
10 May 2023, The Register

Database Futures with a Cockroach Labs Co-Founder
27 January 2023, Datanami

Hashtag Trending May 17- OpenAI’s Sam Altman acknowledges need for AI oversight to U.S. Congress; Most CISOs think their organizations are likely to be attacked; Database known as CockroachDB now supports AWS, Google Cloud and Azure
17 May 2023, IT World Canada

Finleap goes cloud-native with the help of CockroachDB
23 March 2023, SiliconANGLE News

provided by Google News

Apache Derby | GoLand Documentation
21 February 2023, jetbrains.com

Apache Derby - Market Share, Competitor Insights in Relational Databases
22 March 2023, 6Sense

Missing dependency: Spring Boot 3.x + embedded apache derby · Issue #34923 · spring-projects/spring-boot
10 April 2023, github.com

Migrate Database from MySQL to Apache Derby
20 May 2023, forums.oracle.com

How to fix Derby issue for Apache Netbeans IDE 15
5 November 2022, stackoverflow.com

provided by Google News

MongoDB and Alibaba Cloud Extend Global Partnership
25 May 2023, PR Newswire

MongoDB and Alibaba Cloud Extend Global Partnership
25 May 2023, Datanami

MongoDB And Alibaba Cloud Extend Strategic Partnership By Four ...
25 May 2023, CRN

FerretDB Provides Alternative to MongoDB
19 May 2023, Datanami

MongoDB Stock: Stretched Valuation (NASDAQ:MDB)
27 May 2023, Seeking Alpha

provided by Google News

Job opportunities

Backend Engineer, Managed Datastores
Render, San Francisco Bay Area, CA

Senior Technical Writer, Security - New York, San Francisco, Toronto
Cockroach Labs, New York, NY

Reliability Engineer
LaunchDarkly, Remote

Senior Technical Writer, Cluster Observability - New York, San Francisco, Toronto
Cockroach Labs, New York, NY

Java Software Engineer III
JPMorgan Chase Bank, N.A., Jersey City, NJ

DEV OPS ENGINEER
Esperanto.ai, Mountain View, CA

MongoDB Engineer
Alltech International, Remote

Technical Support Analyst
Sakari, Remote

MongoDB Database Administrator (Remote Opportunity)
VetsEZ, Remote

Junior Backend Developer
Actum Lab, Austin, TX

Web Development Opportunities
SuretyBonds.com, Remote

jobs by Indeed



Share this page

Featured Products

Cassandra Forward online event

Want to level up your Cassandra game?
If you missed the event or would like to re-watch a session, replays are available now. Watch now!

Neo4j logo

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

AllegroGraph logo

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

Redis logo

The world’s most loved real‑time data platform.
Try free

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

Present your product here