Alternatives to CockroachDB logo

Alternatives to CockroachDB

MySQL, Oracle, Cassandra, MongoDB, and FoundationDB are the most popular alternatives and competitors to CockroachDB.
209
332
+ 1
0

What is CockroachDB and what are its top alternatives?

CockroachDB is a distributed SQL database built to provide consistency, scalability, and resilience. Its key features include horizontal scalability, ACID transactions, automatic data replication, and multi-region support. However, CockroachDB has some limitations such as queries can be slower compared to traditional databases due to the distributed nature, and it may require more resources to manage and maintain.

  1. TiDB: TiDB is an open-source, distributed SQL database that supports hybrid transactional and analytical processing workloads. Key features include horizontal scalability, ACID compliance, and compatibility with MySQL syntax. Pros: High performance for analytical queries, seamless integration with popular tools like Spark and Presto. Cons: Steeper learning curve compared to traditional databases.

  2. Google Cloud Spanner: Google Cloud Spanner is a fully managed, globally distributed database service that offers strong consistency and horizontal scalability. Key features include multi-region support, automatic sharding, and ACID transactions. Pros: Excellent performance and reliability, seamless integration with other Google Cloud services. Cons: Limited to Google Cloud Platform, can be costly for high-traffic workloads.

  3. YugaByte DB: YugaByte DB is a distributed SQL database that guarantees high performance, scalability, and resilience. It supports both SQL and NoSQL data models and offers features like multi-region deployment, ACID transactions, and automatic failover. Pros: Strong consistency and high availability, seamless compatibility with existing SQL applications. Cons: Relatively new compared to established databases like PostgreSQL or MySQL.

  4. DynamoDB: Amazon DynamoDB is a fully managed NoSQL database service designed for applications that need low latency and seamless scalability. Key features include automatic sharding, built-in security, and flexible data modeling. Pros: Seamless scalability, fully managed service by AWS. Cons: Limited query capabilities compared to SQL databases, can be expensive for large datasets.

  5. Azure Cosmos DB: Azure Cosmos DB is a globally distributed, multi-model database service offered by Microsoft Azure. It supports document, key-value, graph, and column-family data models with features like automatic scaling, multiple consistency levels, and global distribution. Pros: Global scalability, multi-model support, comprehensive SLAs. Cons: Costly for small to medium-sized workloads, complex configuration and management.

  6. ScyllaDB: ScyllaDB is a distributed NoSQL database designed for high performance and low latency workloads. It is compatible with Apache Cassandra but offers improved performance and efficiency. Key features include automatic partitioning, shared-nothing architecture, and scale-out capabilities. Pros: High throughput and low latency, seamless compatibility with existing Cassandra deployments. Cons: Limited support for complex querying compared to SQL databases.

  7. FoundationDB: FoundationDB is a distributed NoSQL database with a focus on scalability, fault tolerance, and consistent performance. It offers ACID transactions, multi-model support, and dynamic partitioning. Pros: Easy to scale and manage, high reliability and fault tolerance. Cons: Limited community support compared to more popular databases, lacks some advanced features found in other databases.

  8. Vitess: Vitess is a database clustering system for horizontal scaling of MySQL through generalized sharding. It provides features like schema flexibility, connection pooling, and compatibility with MySQL protocol. Pros: High availability and scalability, seamless integration with Kubernetes for containerized environments. Cons: Learning curve for setting up and managing the system, not a standalone database but a middleware layer on top of MySQL.

  9. MongoDB: MongoDB is a popular NoSQL database known for its flexibility, scalability, and ease of use. It supports document-oriented data modeling, automatic sharding, and high availability with features like secondary indexes and aggregation pipelines. Pros: Flexible schema design, fast queries on large datasets, rich query language. Cons: Limited support for complex transactions, potential performance issues with large datasets.

  10. FaunaDB: FaunaDB is a globally distributed, transactional NoSQL database cloud service that offers consistency, scalability, and security. Key features include ACID transactions, global data distribution, and built-in authentication mechanisms. Pros: Strong consistency guarantees, serverless deployment model, comprehensive security features. Cons: Limited community support compared to more popular databases, pricing based on usage can be complex to predict.

Top Alternatives to CockroachDB

  • MySQL
    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

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

    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

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

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

  • Citus
    Citus

    It's an extension to Postgres that distributes data and queries in a cluster of multiple machines. Its query engine parallelizes incoming SQL queries across these servers to enable human real-time (less than a second) responses on large datasets. ...

  • Apache Aurora
    Apache Aurora

    Apache Aurora is a service scheduler that runs on top of Mesos, enabling you to run long-running services that take advantage of Mesos' scalability, fault-tolerance, and resource isolation. ...

CockroachDB alternatives & related posts

MySQL logo

MySQL

122.9K
103.9K
3.7K
The world's most popular open source database
122.9K
103.9K
+ 1
3.7K
PROS OF MYSQL
  • 800
    Sql
  • 679
    Free
  • 562
    Easy
  • 528
    Widely used
  • 489
    Open source
  • 180
    High availability
  • 160
    Cross-platform support
  • 104
    Great community
  • 78
    Secure
  • 75
    Full-text indexing and searching
  • 25
    Fast, open, available
  • 16
    SSL support
  • 15
    Reliable
  • 14
    Robust
  • 8
    Enterprise Version
  • 7
    Easy to set up on all platforms
  • 2
    NoSQL access to JSON data type
  • 1
    Relational database
  • 1
    Easy, light, scalable
  • 1
    Sequel Pro (best SQL GUI)
  • 1
    Replica Support
CONS OF MYSQL
  • 16
    Owned by a company with their own agenda
  • 3
    Can't roll back schema changes

related MySQL posts

Nick Rockwell
SVP, Engineering at Fastly · | 46 upvotes · 3.5M views

When I joined NYT there was already broad dissatisfaction with the LAMP (Linux Apache HTTP Server MySQL PHP) Stack and the front end framework, in particular. So, I wasn't passing judgment on it. I mean, LAMP's fine, you can do good work in LAMP. It's a little dated at this point, but it's not ... I didn't want to rip it out for its own sake, but everyone else was like, "We don't like this, it's really inflexible." And I remember from being outside the company when that was called MIT FIVE when it had launched. And been observing it from the outside, and I was like, you guys took so long to do that and you did it so carefully, and yet you're not happy with your decisions. Why is that? That was more the impetus. If we're going to do this again, how are we going to do it in a way that we're gonna get a better result?

So we're moving quickly away from LAMP, I would say. So, right now, the new front end is React based and using Apollo. And we've been in a long, protracted, gradual rollout of the core experiences.

React is now talking to GraphQL as a primary API. There's a Node.js back end, to the front end, which is mainly for server-side rendering, as well.

Behind there, the main repository for the GraphQL server is a big table repository, that we call Bodega because it's a convenience store. And that reads off of a Kafka pipeline.

See more
Tim Abbott

We've been using PostgreSQL since the very early days of Zulip, but we actually didn't use it from the beginning. Zulip started out as a MySQL project back in 2012, because we'd heard it was a good choice for a startup with a wide community. However, we found that even though we were using the Django ORM for most of our database access, we spent a lot of time fighting with MySQL. Issues ranged from bad collation defaults, to bad query plans which required a lot of manual query tweaks.

We ended up getting so frustrated that we tried out PostgresQL, and the results were fantastic. We didn't have to do any real customization (just some tuning settings for how big a server we had), and all of our most important queries were faster out of the box. As a result, we were able to delete a bunch of custom queries escaping the ORM that we'd written to make the MySQL query planner happy (because postgres just did the right thing automatically).

And then after that, we've just gotten a ton of value out of postgres. We use its excellent built-in full-text search, which has helped us avoid needing to bring in a tool like Elasticsearch, and we've really enjoyed features like its partial indexes, which saved us a lot of work adding unnecessary extra tables to get good performance for things like our "unread messages" and "starred messages" indexes.

I can't recommend it highly enough.

See more
Oracle logo

Oracle

2.3K
1.7K
113
An RDBMS that implements object-oriented features such as user-defined types, inheritance, and polymorphism
2.3K
1.7K
+ 1
113
PROS OF ORACLE
  • 44
    Reliable
  • 33
    Enterprise
  • 15
    High Availability
  • 5
    Expensive
  • 5
    Hard to maintain
  • 4
    Maintainable
  • 4
    Hard to use
  • 3
    High complexity
CONS OF ORACLE
  • 14
    Expensive

related Oracle posts

Saurav Pandit
Application Devloper at Bny Mellon · | 9 upvotes · 264.2K views

I have just started learning Python 3 week back. I want to create REST api using python. The api will be use to save form data in Oracle database. The front end is using AngularJS 8 with Angular Material. In python there are so many framework for developing REST ** I am looking for some suggestions which REST framework to choose? ** Here are some feature I am looking for * Easy integration and unit testing like in Angular we just run command. * Code packageing, like in Java maven project we can build and package. I am looking for something which I can push in artifactory and deploy whole code as package. *Support for swagger/ OpenAPI * Support for JSON Web Token * Support for testcase coverage report Framework can have feature included or can be available by extension.

See more
Dishi Jain
Shared insights
on
OracleOracleKubernetesKubernetes

So we are re-engineering our application database to make it cloud-native and deploy on the Kubernetes platform. Currently, our data lies on the Oracle 19c database and it is normalized extensively. We store pdfs, txt files and allow a user to edit, delete, view, create new transactions. Now I want to pick a DB, which makes the re-engineering, not a big deal but allows us to store data in a distributed manner on Kubernetes. Please assist me.

See more
Cassandra logo

Cassandra

3.5K
3.5K
507
A partitioned row store. Rows are organized into tables with a required primary key.
3.5K
3.5K
+ 1
507
PROS OF CASSANDRA
  • 119
    Distributed
  • 98
    High performance
  • 81
    High availability
  • 74
    Easy scalability
  • 53
    Replication
  • 26
    Reliable
  • 26
    Multi datacenter deployments
  • 10
    Schema optional
  • 9
    OLTP
  • 8
    Open source
  • 2
    Workload separation (via MDC)
  • 1
    Fast
CONS OF CASSANDRA
  • 3
    Reliability of replication
  • 1
    Size
  • 1
    Updates

related Cassandra posts

Thierry Schellenbach
Shared insights
on
GolangGolangPythonPythonCassandraCassandra
at

After years of optimizing our existing feed technology, we decided to make a larger leap with 2.0 of Stream. While the first iteration of Stream was powered by Python and Cassandra, for Stream 2.0 of our infrastructure we switched to Go.

The main reason why we switched from Python to Go is performance. Certain features of Stream such as aggregation, ranking and serialization were very difficult to speed up using Python.

We’ve been using Go since March 2017 and it’s been a great experience so far. Go has greatly increased the productivity of our development team. Not only has it improved the speed at which we develop, it’s also 30x faster for many components of Stream. Initially we struggled a bit with package management for Go. However, using Dep together with the VG package contributed to creating a great workflow.

Go as a language is heavily focused on performance. The built-in PPROF tool is amazing for finding performance issues. Uber’s Go-Torch library is great for visualizing data from PPROF and will be bundled in PPROF in Go 1.10.

The performance of Go greatly influenced our architecture in a positive way. With Python we often found ourselves delegating logic to the database layer purely for performance reasons. The high performance of Go gave us more flexibility in terms of architecture. This led to a huge simplification of our infrastructure and a dramatic improvement of latency. For instance, we saw a 10 to 1 reduction in web-server count thanks to the lower memory and CPU usage for the same number of requests.

#DataStores #Databases

See more
Thierry Schellenbach
Shared insights
on
RedisRedisCassandraCassandraRocksDBRocksDB
at

1.0 of Stream leveraged Cassandra for storing the feed. Cassandra is a common choice for building feeds. Instagram, for instance started, out with Redis but eventually switched to Cassandra to handle their rapid usage growth. Cassandra can handle write heavy workloads very efficiently.

Cassandra is a great tool that allows you to scale write capacity simply by adding more nodes, though it is also very complex. This complexity made it hard to diagnose performance fluctuations. Even though we had years of experience with running Cassandra, it still felt like a bit of a black box. When building Stream 2.0 we decided to go for a different approach and build Keevo. Keevo is our in-house key-value store built upon RocksDB, gRPC and Raft.

RocksDB is a highly performant embeddable database library developed and maintained by Facebook’s data engineering team. RocksDB started as a fork of Google’s LevelDB that introduced several performance improvements for SSD. Nowadays RocksDB is a project on its own and is under active development. It is written in C++ and it’s fast. Have a look at how this benchmark handles 7 million QPS. In terms of technology it’s much more simple than Cassandra.

This translates into reduced maintenance overhead, improved performance and, most importantly, more consistent performance. It’s interesting to note that LinkedIn also uses RocksDB for their feed.

#InMemoryDatabases #DataStores #Databases

See more
MongoDB logo

MongoDB

91.9K
79.3K
4.1K
The database for giant ideas
91.9K
79.3K
+ 1
4.1K
PROS OF MONGODB
  • 827
    Document-oriented storage
  • 593
    No sql
  • 553
    Ease of use
  • 464
    Fast
  • 410
    High performance
  • 257
    Free
  • 218
    Open source
  • 180
    Flexible
  • 145
    Replication & high availability
  • 112
    Easy to maintain
  • 42
    Querying
  • 39
    Easy scalability
  • 38
    Auto-sharding
  • 37
    High availability
  • 31
    Map/reduce
  • 27
    Document database
  • 25
    Easy setup
  • 25
    Full index support
  • 16
    Reliable
  • 15
    Fast in-place updates
  • 14
    Agile programming, flexible, fast
  • 12
    No database migrations
  • 8
    Easy integration with Node.Js
  • 8
    Enterprise
  • 6
    Enterprise Support
  • 5
    Great NoSQL DB
  • 4
    Support for many languages through different drivers
  • 3
    Schemaless
  • 3
    Aggregation Framework
  • 3
    Drivers support is good
  • 2
    Fast
  • 2
    Managed service
  • 2
    Easy to Scale
  • 2
    Awesome
  • 2
    Consistent
  • 1
    Good GUI
  • 1
    Acid Compliant
CONS OF MONGODB
  • 6
    Very slowly for connected models that require joins
  • 3
    Not acid compliant
  • 1
    Proprietary query language

related MongoDB posts

Shared insights
on
Node.jsNode.jsGraphQLGraphQLMongoDBMongoDB

I just finished the very first version of my new hobby project: #MovieGeeks. It is a minimalist online movie catalog for you to save the movies you want to see and for rating the movies you already saw. This is just the beginning as I am planning to add more features on the lines of sharing and discovery

For the #BackEnd I decided to use Node.js , GraphQL and MongoDB:

  1. Node.js has a huge community so it will always be a safe choice in terms of libraries and finding solutions to problems you may have

  2. GraphQL because I needed to improve my skills with it and because I was never comfortable with the usual REST approach. I believe GraphQL is a better option as it feels more natural to write apis, it improves the development velocity, by definition it fixes the over-fetching and under-fetching problem that is so common on REST apis, and on top of that, the community is getting bigger and bigger.

  3. MongoDB was my choice for the database as I already have a lot of experience working on it and because, despite of some bad reputation it has acquired in the last months, I still believe it is a powerful database for at least a very long list of use cases such as the one I needed for my website

See more
Vaibhav Taunk
Team Lead at Technovert · | 31 upvotes · 3.9M views

I am starting to become a full-stack developer, by choosing and learning .NET Core for API Development, Angular CLI / React for UI Development, MongoDB for database, as it a NoSQL DB and Flutter / React Native for Mobile App Development. Using Postman, Markdown and Visual Studio Code for development.

See more
FoundationDB logo

FoundationDB

33
79
21
Multi-model database with particularly strong fault tolerance, performance, and operational ease
33
79
+ 1
21
PROS OF FOUNDATIONDB
  • 6
    ACID transactions
  • 5
    Linear scalability
  • 3
    Multi-model database
  • 3
    Key-Value Store
  • 3
    Great Foundation
  • 1
    SQL Layer
CONS OF FOUNDATIONDB
    Be the first to leave a con

    related FoundationDB posts

    MariaDB logo

    MariaDB

    16K
    12.5K
    468
    An enhanced, drop-in replacement for MySQL
    16K
    12.5K
    + 1
    468
    PROS OF MARIADB
    • 149
      Drop-in mysql replacement
    • 100
      Great performance
    • 74
      Open source
    • 55
      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
      Consistent and robust
    • 4
      Learning curve easy
    • 2
      Native JSON Support / Dynamic Columns
    • 1
      Real Multi Threaded queries on a table/db
    CONS OF MARIADB
      Be the first to leave a con

      related MariaDB posts

      Tassanai Singprom

      This is my stack in Application & Data

      JavaScript PHP HTML5 jQuery Redis Amazon EC2 Ubuntu Sass Vue.js Firebase Laravel Lumen Amazon RDS GraphQL MariaDB

      My Utilities Tools

      Google Analytics Postman Elasticsearch

      My Devops Tools

      Git GitHub GitLab npm Visual Studio Code Kibana Sentry BrowserStack

      My Business Tools

      Slack

      See more
      Joshua Dean Küpper
      CEO at Scrayos UG (haftungsbeschränkt) · | 11 upvotes · 662.6K views

      We primarily use MariaDB but use PostgreSQL as a part of GitLab , Sentry and Nextcloud , which (initially) forced us to use it anyways. While this isn't much of a decision – because we didn't have one (ha ha) – we learned to love the perks and advantages of PostgreSQL anyways. PostgreSQL's extension system makes it even more flexible than a lot of the other SQL-based DBs (that only offer stored procedures) and the additional JOIN options, the enhanced role management and the different authentication options came in really handy, when doing manual maintenance on the databases.

      See more
      Citus logo

      Citus

      58
      122
      10
      Worry-free Postgres for SaaS
      58
      122
      + 1
      10
      PROS OF CITUS
      • 6
        Multi-core Parallel Processing
      • 2
        Drop-in PostgreSQL replacement
      • 2
        Distributed with Auto-Sharding
      CONS OF CITUS
        Be the first to leave a con

        related Citus posts

        Dan Robinson
        Shared insights
        on
        PostgreSQLPostgreSQLCitusCitus
        at

        PostgreSQL was an easy early decision for the founding team. The relational data model fit the types of analyses they would be doing: filtering, grouping, joining, etc., and it was the database they knew best.

        Shortly after adopting PG, they discovered Citus, which is a tool that makes it easy to distribute queries. Although it was a young project and a fork of Postgres at that point, Dan says the team was very available, highly expert, and it wouldn’t be very difficult to move back to PG if they needed to.

        The stuff they forked was in query execution. You could treat the worker nodes like regular PG instances. Citus also gave them a ton of flexibility to make queries fast, and again, they felt the data model was the best fit for their application.

        #DataStores #Databases

        See more
        Dan Robinson

        At Heap, we searched for an existing tool that would allow us to express the full range of analyses we needed, index the event definitions that made up the analyses, and was a mature, natively distributed system.

        After coming up empty on this search, we decided to compromise on the “maturity” requirement and build our own distributed system around Citus and sharded PostgreSQL. It was at this point that we also introduced Kafka as a queueing layer between the Node.js application servers and Postgres.

        If we could go back in time, we probably would have started using Kafka on day one. One of the biggest benefits in adopting Kafka has been the peace of mind that it brings. In an analytics infrastructure, it’s often possible to make data ingestion idempotent.

        In Heap’s case, that means that, if anything downstream from Kafka goes down, we won’t lose any data – it’s just going to take a bit longer to get to its destination. We also learned that you want the path between data hitting your servers and your initial persistence layer (in this case, Kafka) to be as short and simple as possible, since that is the surface area where a failure means you can lose customer data. We learned that it’s a very good fit for an analytics tool, since you can handle a huge number of incoming writes with relatively low latency. Kafka also gives you the ability to “replay” the data flow: it’s like a commit log for your whole infrastructure.

        #MessageQueue #Databases #FrameworksFullStack

        See more
        Apache Aurora logo

        Apache Aurora

        69
        96
        0
        An Apcahe Mesos framework for scheduling jobs, originally developed by Twitter
        69
        96
        + 1
        0
        PROS OF APACHE AURORA
          Be the first to leave a pro
          CONS OF APACHE AURORA
            Be the first to leave a con

            related Apache Aurora posts

            Docker containers on Mesos run their microservices with consistent configurations at scale, along with Aurora for long-running services and cron jobs.

            See more