CockroachDB vs MariaDB

Need advice about which tool to choose?Ask the StackShare community!

CockroachDB

143
235
+ 1
0
MariaDB

11.1K
8.3K
+ 1
467
Add tool

CockroachDB vs MariaDB: What are the differences?

Developers describe CockroachDB as "A cloud-native SQL database for building global, scalable cloud services that survive disasters". Cockroach Labs is the company building CockroachDB, an open source, survivable, strongly consistent, scale-out SQL database. On the other hand, MariaDB is detailed as "An enhanced, drop-in replacement for MySQL". Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

CockroachDB and MariaDB can be primarily classified as "Databases" tools.

MariaDB is an open source tool with 2.82K GitHub stars and 864 GitHub forks. Here's a link to MariaDB's open source repository on GitHub.

According to the StackShare community, MariaDB has a broader approval, being mentioned in 496 company stacks & 461 developers stacks; compared to CockroachDB, which is listed in 13 company stacks and 8 developer stacks.

Advice on CockroachDB and MariaDB
Maxim Ryakhovskiy
Needs advice
on
PostgreSQLPostgreSQLMongooseMongoose
and
MariaDBMariaDB

Hi all. I am an informatics student, and I need to realise a simple website for my friend. I am planning to realise the website using Node.js and Mongoose, since I have already done a project using these technologies. I also know SQL, and I have used PostgreSQL and MySQL previously.

The website will show a possible travel destination and local transportation. The database is used to store information about traveling, so only admin will manage the content (especially photos). While clients will see the content uploaded by the admin. I am planning to use Mongoose because it is very simple and efficient for this project. Please give me your opinion about this choice.

See more
Replies (7)
malekmfs
at Meam Software Engineering Group · | 4 upvotes · 75.1K views

Your requirements seem nothing special. on the other hand, MongoDB is commonly used with Node. you could use Mongo without defining a Schema, does it give you any benefits? Also, note that development speed matters. In most cases RDBMS are the best choice, Learn and use Postgres for life!

See more

The use case you are describing would benefit from a self-hosted headless CMS like contentful. You can also go for Strapi with a database of your choice but here you would have to host Strapi and the underlying database (if not using SQLite) yourself. If you want to use Strapi, you can ease your work by using something like PlanetSCaleDB as the backing database for Strapi.

See more
Nutchanon Ninyawee

SQL is not so good at query lat long out of the box. you might need to use additional tools for that like UTM coordinates or Uber's H3.

If you use mongoDB, it support 2d coordinate query out of the box.

See more
Recommends
MongooseMongoose

Any database will be a great choice for your app, which is less of a technical challenge and more about great content. Go for it, the geographical search features maybe be actually handy for you.

See more
Tarun Batra
Back End Developer at instabox · | 2 upvotes · 67.9K views
Recommends
MongooseMongoose

MongoDB and Mongoose are commonly used with Node.js and the use case doesn't seem to be requiring any special considerations as of now. However using MongoDB now will allow you to easily expand and modify your use case in future.

If not MongoDB, then my second choice will be PostgreSQL. It's a generic purpose database with jsonb support (if you need it) and lots of resources online. Nobody was fired for choosing PostgreSQL.

See more
Václav Hodek
CEO, lead developer at Localazy · | 1 upvotes · 68.3K views
Recommends
PostgreSQLPostgreSQL

Any database engine should work well but I vote for Postgres because of PostGIS extension that may be handy for travel related site. There's nothing special about your requirements.

See more
Ruslan Rayanov
Recommends

Hi, Maxim! Most likely, the site is almost ready. But we would like to share our development with you. https://falcon.web-automation.ru/ This is a constructor for web application. With it, you can create almost any site with different roles which have different levels of access to information and different functionality. The platform is managed via sql. knowing sql, you will be able to change the business logic as necessary and during further project maintenance. We will be glad to hear your feedback about the platform.

See more
Decisions about CockroachDB and MariaDB
Omran Jamal
CTO & Co-founder at Bonton Connect · | 4 upvotes · 238.9K views

We actually use both Mongo and SQL databases in production. Mongo excels in both speed and developer friendliness when it comes to geospatial data and queries on the geospatial data, but we also like ACID compliance hence most of our other data (except on-site logs) are stored in a SQL Database (MariaDB for now)

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of CockroachDB
Pros of MariaDB
    Be the first to leave a pro
    • 149
      Drop-in mysql replacement
    • 100
      Great performance
    • 74
      Open source
    • 54
      Free
    • 44
      Easy setup
    • 15
      Easy and fast
    • 14
      Lead developer is "monty" widenius the founder of mysql
    • 6
      Also an aws rds service
    • 4
      Learning curve easy
    • 4
      Consistent and robust
    • 2
      Native JSON Support / Dynamic Columns
    • 1
      Real Multi Threaded queries on a table/db

    Sign up to add or upvote prosMake informed product decisions

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -

    What is CockroachDB?

    It allows you to deploy a database on-prem, in the cloud or even across clouds, all as a single store. It is a simple and straightforward bridge to your future, cloud-based data architecture.

    What is MariaDB?

    Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use CockroachDB?
    What companies use MariaDB?
    See which teams inside your own company are using CockroachDB or MariaDB.
    Sign up for Private StackShareLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with CockroachDB?
    What tools integrate with MariaDB?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to CockroachDB and MariaDB?
    MySQL
    The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
    Oracle
    Oracle Database is an RDBMS. An RDBMS that implements object-oriented features such as user-defined types, inheritance, and polymorphism is called an object-relational database management system (ORDBMS). Oracle Database has extended the relational model to an object-relational model, making it possible to store complex business models in a relational database.
    Cassandra
    Partitioning means that Cassandra can distribute your data across multiple machines in an application-transparent matter. Cassandra will automatically repartition as machines are added and removed from the cluster. Row store means that like relational databases, Cassandra organizes data by rows and columns. The Cassandra Query Language (CQL) is a close relative of SQL.
    MongoDB
    MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
    FoundationDB
    FoundationDB is a NoSQL database with a shared nothing architecture. Designed around a "core" ordered key-value database, additional features and data models are supplied in layers. The key-value database, as well as all layers, supports full, cross-key and cross-server ACID transactions.
    See all alternatives