cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.

What is cockroach?

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.

Overview of cockroach

What it is

CockroachDB is a cloud-native distributed SQL database designed to build, scale, and manage modern, data-intensive applications. It is built on a transactional and strongly-consistent key-value store, and it provides a familiar SQL API for structuring, manipulating, and querying data. The README describes it as scaling horizontally, surviving failures, supporting strongly-consistent ACID transactions, and exposing a SQL interface. For deeper detail, the README points to the product overview, FAQ, and architecture document.

Key features

  • Scales horizontally across machines.
  • Survives disk, machine, rack, and even datacenter failures with minimal latency disruption and no manual intervention.
  • Supports strongly-consistent ACID transactions.
  • Provides a familiar SQL API for structuring, manipulating, and querying data.
  • Supports the PostgreSQL wire protocol, so available PostgreSQL client drivers can connect from various languages.
  • Core features covered in the documentation include data replication, automatic rebalancing, and fault tolerance and recovery.

Use cases

CockroachDB is positioned for modern, data-intensive applications that need to be built, scaled, and managed. The README lists several deployment paths: CockroachCloud, where Cockroach Labs runs the database for you so you do not have to run your own cluster; manual deployment of a cluster on multiple machines; deployment guides for various cloud platforms; and guides for running CockroachDB with popular open-source orchestration systems. Applications can be built using PostgreSQL-compatible drivers or ORMs, and the README points to tested drivers, example apps, and supported ORMs.

Getting started

The README outlines the path rather than listing commands: install CockroachDB using a pre-built executable or build it from source; start a local cluster and connect to it via the built-in SQL client; learn more about CockroachDB SQL; use a PostgreSQL-compatible driver or ORM to build an app; and explore core features such as data replication, automatic rebalancing, and fault tolerance and recovery. Specific install and quick-start commands are not included in the README, so see the repository README and the user documentation for them.

License and pricing

All versions released on or after November 18, 2024 (specifically, major version series v24.3 and later, and patch fixes for v23.1.29+, v23.2.16+, v24.1.7+, and v24.2.5+) are published under the CockroachDB Software License (CSL). Source code in a given file is licensed under the CSL, and copyright belongs to The Cockroach Authors unless otherwise noted in the file or in a LICENSE or README file located in the same or a parent directory of the file. The repository metadata classifies the pricing type as open source; the README does not state pricing.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/cockroachdbcockroach.svg)](https://yunodb.com/tools/cockroachdbcockroach?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/cockroachdbcockroach?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/cockroachdbcockroach.svg" alt="Featured on YunoDB" height="20"></a>