# cockroachdb/cockroach

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

Repository: https://github.com/cockroachdb/cockroach
Canonical: https://ross.abutalabs.com/products/cockroach
Homepage: https://www.cockroachlabs.com
Language: Go
License: NOASSERTION
License Family: other
Topics: go, database, sql, distributed-database, cockroachdb, hacktoberfest
Last push: 2026-08-26T23:11:56+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4592, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 32415, forks 4097 (observed 2026-08-28T04:11:57.563924+00:00)

## What it is
CockroachDB is a cloud-native distributed SQL database built on a transactional, strongly-consistent key-value store, written in Go. It scales horizontally, survives disk, machine, rack, and datacenter failures with no manual intervention, and exposes a PostgreSQL-compatible SQL API.

## Use cases
- run a globally distributed SQL database that survives datacenter failures
- scale a transactional database horizontally without manual sharding
- migrate from PostgreSQL to a cloud-native distributed database
- pin data to specific regions for compliance and low latency
- build a fintech system of record with 99.99%+ uptime
- run a strongly consistent ACID database across multiple clouds

## When to choose
- you need strong consistency and ACID transactions across regions
- you cannot tolerate downtime from disk, machine, or datacenter failures
- you want PostgreSQL compatibility with automatic replication and rebalancing
- you need data locality controls for regulatory compliance
- you are scaling past what a single Postgres node or manual sharding can handle

## When to avoid
- you need a lightweight embedded or single-node database for a small app
- your workload is read-heavy analytics better served by a data warehouse
- you depend on PostgreSQL extensions or features CockroachDB does not support
- you want the simplest possible operational footprint and no cluster to manage
- you need strict open-source licensing - the core license is not OSI-approved (BSL-style)

## Facets
- artifact type: application
- maturity: stable
- function: database, caching, search-engine
- domain: databases, microservices, cloud-computing, backend, fintech
- platform: windows, cloud, self-hosted, go
- tags: distributed-sql, postgresql-compatible, acid-transactions, horizontal-scaling, high-availability, multi-region, survivable-database, kv-store, sql, linux, macos, docker, kubernetes

## Member repositories
- cockroachdb/cockroach (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:57.563924+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:52:06.437357+00:00, confidence not recorded.
  - readme: https://github.com/cockroachdb/cockroach (fetched 2026-08-28T04:11:57.563924+00:00, sha e464b2514ee7)
  - homepage: https://www.cockroachlabs.com (fetched 2026-08-29T07:49:00.988115+00:00, sha c1d6b13cbeb7)
  - site_page: https://docs.cockroachlabs.com/ (fetched 2026-08-29T07:49:01.001444+00:00, sha 289b9a1b0263)
  - site_page: https://www.cockroachlabs.com/about (fetched 2026-08-29T07:49:01.003788+00:00, sha 791d017a6574)
  - site_page: https://www.cockroachlabs.com/pricing (fetched 2026-08-29T07:49:00.998183+00:00, sha e44db3145775)
- Data as of 2026-08-30T08:39:29.467469+00:00.
