.tech Podcast - Running CockroachDB

There are three ways of running CockroachDB: self-hosted, CockroachDB Cloud and CockroachDB serverless.
Daniel Holt discusses the pros and cons of each on the .tech podcast hosted by Form3’s Kevin Holditch.

Daniel goes through some common use cases and how CockroachDB can help you implement them.
Here are some key highlights of this episode.

Introduction to CockroachDB

The elevator pitch of CockroachDB is that it is a horizontally scalable, relational database.

CockroachDB bridges the gap between the existing database offerings. It gives you a SQL database that is Postgres dialect compatible, ACID compliance and horizontally scalability by adding more nodes. It can also be run in any public and private cloud provider, or any hardware.

CockroachDB provides serialializable isolation, which protects from all data anomalies.

In a cluster, nodes use RAFT based consensus. Nodes must agree on the value of the data before it is written, offering immediate consistency. This is especially important for industries like Form3, where we deal with payments data which must be absolutely consistent.

CockroachDB presents itself as a normal relational database with a SQL API, but under the bonnet it splits up the data into key-value stores and moves them across nodes. It uses forked version of RocksDB, which is a consistent key value store, and then allocates the data across the cluster nodes. This makes it easy to add and remove nodes from the CockroachDB cluster.

  • Data is split in 512 MiB data ranges. Nearly every operation is done at the range level.
  • Each range has a replication factor of 3. One of the replicated ranges gets elected as a leaseholder and it controls all the reads and writes on that data range. This allows Cockroach to scale the operations on the range level.

Running CockroachDB

There are a few different ways to run CockroachDB:

  1. Self-hosted allows you to deploy the cluster yourself by downloading the binary or Kubernetes using a Docker image.
  2. CockroachDB Cloud is a PaaS offering for CockroachDB, which is proving popular with a lot of small to medium size customers.
  3. CockroachDB Serverless is the newest offering. It is a consumption based model for CockroachDB.
by Adelina Simion Technology Evangelist

Further resources

Here are some other resources that you might find interesting:

.tech Podcast - Supercharge your Kubernetes clusters with Cilium

Dan Wendlandt, the CEO of Isovalent joins host Kevin Holditch for a discussion on the product they have created Cilium. Join them to learn how Cilium leverages eBPF to give your kubernetes cluster superpowers! These superpowers include cluster meshing (global kubernetes services across multiple clusters), lightning fast networking (no iptables), pod network security which can be scoped to a pod identity and include rules for both inside and outside of cluster and full network observability. Dan takes me through how Cilium enables all of these features.

.tech Podcast - CockroachDB - a Cloud Native Global Database

CockroachDB is a cloud native global database, built from the ground up to be run as a truly global database. In this episode our host Kevin Holditch is joined by Daniel Holt of Cockroach Labs to take a deep dive into CockroachDB. They cover the use case for CockroachDB, deployment topologies, how it works under the bonnet plus a lot more.

How Form3 is Building Unkillable Payment Infrastructure

When your service is handling critical workloads, you need speed, availability, and consistency all at the same time. Here's how Form3 is making it happen.