cockroach VS dgraph

Compare cockroach vs dgraph and see what are their differences.

cockroach

CockroachDB - the open source, cloud-native distributed SQL database. (by cockroachdb)
Our great sponsors
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
  • SaaSHub - Software Alternatives and Reviews
cockroach dgraph
23 20
22,567 16,985
1.1% 1.0%
10.0 9.5
3 days ago 3 days ago
Go Go
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cockroach

Posts with mentions or reviews of cockroach. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-30.
  • Composing generic data structures in go
    3 projects | dev.to | 30 Nov 2021
    Recently a colleague, Nathan, reflecting on CockroachDB, remarked (paraphrased from memory) that the key data structure is the interval btree. The story of Nathan’s addition of the first interval btree to cockroach and the power of copy-on-write data structures is worthy of its own blog post for another day. It’s Nathan’s hand-specialization of that data structure that provided the basis (and tests) for the generalization I’ll be presenting here. The reason for this specialization was as much for the performance wins of avoiding excessive allocations, pointer chasing, and cost of type assertions when using interface boxing.
  • Stacked changes: how FB and Google engineers stay unblocked and ship faster
    12 projects | news.ycombinator.com | 17 Nov 2021
    I'm surprised Reviewable[0] hasn't come up in this discussion. It does a great job of allowing stacked code reviews and even handles rebases nicely; the reviewer sees the diff between commit #1 and commit #1' (prime = after rebase).

    CockroachDB[1] has been using it since very early in the project.

    [0] https://reviewable.io/

    [1] https://github.com/cockroachdb/cockroach

  • 1 project | reddit.com/r/facepalm | 6 Nov 2021
    And even if you did want to run your database on a bunch of untrusted machines, a blockchain, being a linked list, is not a particularly efficient implementation. Its size increases linearly with the number of operations, which, for any rapid-fire application such as banking, means you have a tremendously inefficient marginal computational and storage cost per operation. You’d be considerably better off running something like Cockroach, or FoundationDB, or more ‘out-there’ offerings like Hypercore.
  • CockroachDB Grants and Schemas explained
    1 project | dev.to | 28 Aug 2021
    And here: https://github.com/cockroachdb/cockroach/issues/16790
  • Design to Duty: How we make architecture decisions at Adyen
    1 project | dev.to | 28 Jul 2021
    As you now know, we do not want to achieve this by restricting payments of some merchants to certain machines, as this would mean the machines are no longer linearly scalable. The information needs to be available locally, so we eventually decided on integrating Cockroach, a distributed database, with our PALs.
  • go startpack
    8 projects | dev.to | 15 Jul 2021
    CockroachDB (label: E-easy) The Scalable, Survivable, Strongly-Consistent SQL Database
  • The start of my journey learning Go. Any tips/suggestions would greatly appreciated!
    6 projects | reddit.com/r/golang | 29 Jun 2021
  • What is Cost-based Optimization?
    4 projects | dev.to | 2 Jun 2021
    In CockroachDB, the cost is an abstract 64-bit floating-point scalar value.
  • #30DaysofAppwrite : Appwrite’s building blocks
    3 projects | dev.to | 3 May 2021
    Appwrite uses MariaDB as the default database for project collections, documents, and all other metadata. Appwrite is agnostic to the database you use under the hood and support for more databases like Postgres, CockroachDB, MySQL and MongoDB is currently under active development! 😊
  • I am building a Serverless version of Redis - written in Rust
    7 projects | reddit.com/r/rust | 2 May 2021
    For me, if you look back to when Redis has been designed - 11 years ago, it was before the Cloud was a thing. Since then, you have Cloud alternatives that are mostly proprietary. The idea of RedisLess is not competing against a product that is existing for 11 years but showing a new path of how we can build a system on top of an existing one. You can see RedisLess as experimentation. How to build Cloud-native databases by taking advantage of existing solutions? TiDB, Yugabyte, CockroachDB are great examples of being MySQL wire protocol compatible and providing a Cloud way of managing data.

dgraph

Posts with mentions or reviews of dgraph. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-26.
  • DGraph Data Modeling: Part 1 - Timestamps
    2 projects | dev.to | 26 Nov 2021
    In my opinion, DGraph is the best competition to Firestore there is (and much much more). Imagine Firestore with Subscriptions, plus a Graph Database for complex searching, plus any kind of relational data you can think of, wrapped in a GraphQL interface, or a backend custom language called DQL.
    2 projects | dev.to | 26 Nov 2021
    While DGraph is new and they team works on getting every feature we can think of implemented, Timestamps seems to be one of the most requested features. There is an active pull request on github for this feature (dpeek, seriously thank you for your hard work--also anytime the Dgraph team works on GraphQL Features, thank you guys too!), the feature is not quite available for the public. Once approved, it will be available to non-cloud users immediately (or now if they want to add use a custom backend), and to cloud users hopefully in the next 0 days to 6 months. At that point, I will update this posts, as it will still contain valuable information for some users.
  • I've made Unigraph, a local/self-hosted FOSS personal knowledge graph, notetaking app, and personal search engine that connects with your existing workflow (demo & access in link)
    2 projects | reddit.com/r/selfhosted | 18 Nov 2021
    Database is a fork of Dgraph (https://dgraph.io), backend is node.js, and frontend is react (optional electron). All in typescript & ES6+
  • GraphQL Auth without Middleware
    2 projects | dev.to | 17 Nov 2021
    In almost every GraphQL API, GraphQL developers need to add middleware to create rules for the authorization of these CRUD actions. There is on implementation of GraphQL however that stands above the competition, Dgraph! Dgraph has engineered their GraphQL API which is embedded into the core of the database to generate CRUD operations with authorization built-in. How is this possible? When a developer deploys a schema, they simply need to create rules using the @auth directive. Dgraph will then apply these rules and run them as a single query operation (avoiding the N+1 problem) when querying and mutating data.
  • A Backend with Flexibility
    3 projects | dev.to | 12 Nov 2021
    Let me introduce you to Dgraph! Dgraph is a spanner-like backend solution that at its core is a key-value store, but at the API level provided as an endpoint inside of the core provides a GraphQL API.
  • Golang + Neo4j
    3 projects | reddit.com/r/golang | 2 Nov 2021
    What is with dgraph ? https://github.com/dgraph-io/dgraph as I see same features as neojs and written also in go
  • Dgraph is the most exciting tech product I've ever used ❤️‍🔥. Here's Why:
    1 project | dev.to | 26 Oct 2021
    This might sound like hyperbole but I genuinely believe that Dgraph is the most exciting dev product I've seen in my career. I'm constantly blown away by the seemingly small but crazy powerful features that I keep discovering, but the most exciting (meta)feature of Dgraph I want to talk about is that it has completely revolutionised the whole software development cycle. Especially for startups who are trying to ship fast. In this post I want to focus on two things; query optimisation and schema design.
  • Uber using External Consistency database Google Cloud Spanner
    1 project | reddit.com/r/googlecloud | 30 Sep 2021
    Thanks, cool. I will check out https://dgraph.io/
  • Is there a database like Firebase which can be used with flutter but doesn't collect user data?
    5 projects | reddit.com/r/FlutterDev | 4 Sep 2021
    Just https://dgraph.io, your link is for registered users
  • Graph database vs relational database for associated data with the same structure?
    1 project | reddit.com/r/Database | 4 Aug 2021
    If you're handling many millions of records and need good performance over complex graph query (friends-of-friends-of-friends and suchlike) then a graph database may be worth looking into. I've been impressed with https://dgraph.io/ but I haven't tried many of the other options.

What are some alternatives?

When comparing cockroach and dgraph you can also consider the following projects:

tidb - TiDB is an open source distributed HTAP database compatible with the MySQL protocol

vitess - Vitess is a database clustering system for horizontal scaling of MySQL.

Trino - Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)

yugabyte-db - The high-performance distributed SQL database for global, internet-scale apps.

InfluxDB - Scalable datastore for metrics, events, and real-time analytics

go-memdb - Golang in-memory database built on immutable radix trees

rqlite - The lightweight, distributed relational database built on SQLite

GORM - The fantastic ORM library for Golang, aims to be developer friendly

go-raw-postgresql-builder - Create raw sql from structs without ORM

jaeger - CNCF Jaeger, a Distributed Tracing Platform

prometheus - The Prometheus monitoring system and time series database.