Fact-checked by Grok 2 weeks ago

CockroachDB

CockroachDB is a source-available database designed for building resilient, scalable cloud-native applications, combining the consistency and transaction support of traditional relational databases with the horizontal scalability and of systems. It provides a PostgreSQL-compatible , enabling developers to use familiar while benefiting from automated distribution, replication, and recovery across clusters of nodes. CockroachDB emphasizes , surviving node failures and network partitions without data loss, making it suitable for global, data-intensive workloads. CockroachDB was developed by Cockroach Labs, a company founded in 2015 by Spencer Kimball, Peter Mattis, and Ben Darnell, all former Google engineers who drew inspiration from Google's Spanner distributed database to address challenges in scaling relational databases for cloud environments. The project originated as an initiative to create a "survivable" database resilient to the "apocalypse" of distributed system failures, with its name evoking the indestructibility of cockroaches. Cockroach Labs has since grown to support enterprise adoption, offering both self-hosted and fully managed cloud deployments on platforms like AWS, Google Cloud, and Azure. Key features of CockroachDB include automatic sharding and rebalancing of data for effortless scaling, built-in geo-partitioning for low-latency global access, and advanced security measures such as (RBAC) and encryption at rest and in transit. It supports (CDC) for real-time integrations and rolling upgrades to minimize downtime, powering applications in sectors like , , and where reliability and performance under load are critical. In 2025, marking its 10th anniversary, CockroachDB released version 25.2 with major performance gains and enterprise advancements. As of 2025, CockroachDB has over 800 contributors and maintains its position as a leading solution for in hybrid and multi-cloud architectures.

History

Founding

CockroachDB was founded in 2015 by Spencer Kimball, Peter Mattis, and Ben Darnell, all former Google engineers who had previously collaborated on projects like the image editor GIMP and worked at startups such as Viewfinder and Square. Their experience at Google exposed them to advanced distributed systems, particularly inspiring them to draw from the design principles of Google's Spanner, a globally distributed database that emphasized consistency and scalability across data centers. The founders aimed to create an open-source alternative that could deliver similar capabilities without the proprietary constraints of cloud vendor lock-in, addressing the growing need for resilient databases in cloud-native applications. The project's name, CockroachDB, reflects its core design philosophy: building a database resilient enough to survive catastrophic failures, much like the insect's legendary hardiness. The initial goal was to develop a scalable, consistent database that maintains (Atomicity, Consistency, Isolation, Durability) transactions while enabling horizontal scalability across clusters, even in the face of node, rack, or regional outages. Early prototypes focused on this survivability, implementing a key-value store foundation with SQL semantics layered on top to ensure without sacrificing . In parallel with the technical development, the founders established Cockroach Labs as a private company in 2015 to commercialize and sustain the project. The company prioritized open-source development from the outset, releasing the code under the Apache 2.0 license to encourage community contributions and widespread adoption. Alpha releases began in late 2015, with initial binaries and documentation made available on GitHub, allowing early testers to experiment with the system's distributed architecture and fault-tolerant features. By 2016, these efforts culminated in a beta release, marking the transition from prototype to a more stable offering that demonstrated the database's potential for production-like horizontal scaling and ACID compliance.

Key Milestones

CockroachDB achieved a significant with the release of version 1.0 on May 10, 2017, which marked its production readiness as an open-source, cloud-native database with comprehensive SQL support and foundational multi-region capabilities inspired by Google's Spanner. In October 2019, Cockroach Labs introduced CockroachDB Cloud as a fully managed service in , enabling deployment of the database across multi-cloud environments to simplify for businesses. That same year, in June 2019, Cockroach Labs shifted enterprise features of CockroachDB to the Business Source License (BSL) 1.1, a source-available model that restricted certain commercial uses while maintaining community access to core functionality. This approach was later fully transitioned in November 2024 with the v24.3 release on November 18, retiring the free Core edition and adopting the CockroachDB Enterprise license, which offers free access to qualifying organizations with under $10 million in annual revenue. Cockroach Labs marked its 10th anniversary on February 8, 2025, reflecting on a decade of advancements in technology. The company celebrated this occasion with the v25.2 release on June 3, 2025, delivering over 41% performance improvements across key workloads and introducing vector indexing to support AI-driven applications. Building on this momentum, the v25.3 release on August 4, 2025, added a new operator for automated deployment and scaling, alongside enhanced migration tools via the MOLT Fetch toolkit for smoother transitions from legacy databases. Throughout its evolution, Cockroach Labs secured substantial funding to fuel development, culminating in a Series F round of $278 million in December 2021 that valued the company at $5 billion and brought total funding to $633 million.

Architecture

Core Principles

CockroachDB adheres to the CP (Consistency and Partition tolerance) model of the , prioritizing strong data over in the event of network partitions. This design choice ensures that all replicas maintain synchronized states using the consensus algorithm, preventing divergent data copies even during failures, though it may temporarily pause operations until partitions resolve. By focusing on , CockroachDB avoids the risks of stale reads or lost updates common in availability-first systems. At its foundation, CockroachDB operates as a distributed key-value store that supports a SQL , relational queries while managing data across multiple nodes. All user data, including tables and indexes, is encoded into a sorted map of key-value pairs, which the SQL layer translates into efficient distributed operations. This architecture delivers full (, , , ) transactions spanning arbitrary keys and nodes, with serializable isolation to prevent anomalies like dirty reads or lost updates. The transactional layer coordinates intents and timestamps to enforce these guarantees without requiring application-level locking. Horizontal scalability is achieved through automatic sharding of the keyspace into ranges—contiguous units of data typically up to 512 MiB—and replication across nodes for . As data grows, ranges split dynamically when they reach the configured maximum size, distributing load evenly without manual intervention. By default, each range maintains three replicas on distinct nodes or failure domains, ensuring data survivability against the loss of any single node while leveraging for consensus-driven replication. This approach allows clusters to scale linearly by adding nodes, with automatic rebalancing to maintain balanced utilization. In cloud deployments, CockroachDB employs a multi-tenant architecture to isolate resources among multiple users while enabling elastic scaling. Tenants share underlying infrastructure but operate in virtualized clusters with strong isolation for security and performance, allowing compute and storage to scale independently based on demand. This model supports thousands of concurrent databases on shared hardware without compromising per-tenant guarantees, optimizing costs for SaaS and cloud-native applications. CockroachDB emphasizes geo-partitioning to minimize for applications and enhance against regional failures. Data can be partitioned by locality—such as region or availability zone—at the row or table level, ensuring frequently accessed records remain close to users and reducing cross-region data travel. For instance, regional tables replicate data within a specific for low- reads and writes, while tables distribute replicas across regions for read-anywhere access, surviving data center outages through configurable survival goals. This geo-aware distribution integrates with the replication layer to balance performance and in multi-region clusters.

Components and Data Management

CockroachDB operates as a distributed system composed of multiple , each representing an individual server that runs the CockroachDB process and participates in the cluster. These collectively manage data and transactions, communicating via with configurable network timeouts to ensure efficient coordination. A hosts one or more , which are local disk-based storage units containing replicas of data ; no two replicas of the same reside on the same or to prevent single points of failure. Data within is managed using the key-value storage engine, an LSM-tree implementation that persists key-value pairs in immutable files across multiple levels, with memtables and write-ahead logs ensuring durability before flushing to disk. As of v25.3 (October 2025), CockroachDB introduced separation in to boost throughput for write-heavy workloads by up to 60%. At the core of data management, CockroachDB shards its key-value store into ranges, which are contiguous, non-overlapping segments of the keyspace, typically sized up to 512 MiB before automatic splitting. Each table and its indexes initially occupy a single range, but as data volume grows, ranges split to distribute load. The entire dataset forms a monolithic sorted map, with keys structured as /<tableID>/<indexID>/<indexed columns> -> <row data>, enabling efficient lookups and scans. Metadata for range locations is maintained in special meta ranges—a two-level index (meta1 and meta2)—that tracks range descriptors, including RangeIDs, key spans, and replica node addresses, facilitating transparent data access from any node. Replication ensures data durability through the consensus algorithm, which organizes s of each range into leader-follower groups with a configurable replication factor (defaulting to three). The leader , known as the leaseholder, coordinates writes by proposing commands to its Raft log, which followers replicate via heartbeats and votes (requiring a , such as 2 out of 3), guaranteeing consistency and up to (replication factor - 1)/2 failures. Automatic occurs when liveness heartbeats detect a dead node, triggering a new and lease transfer to a surviving , typically completing in seconds without . This mechanism, as detailed in CockroachDB's foundational design, supports geo-distributed resilience on commodity hardware. The layer builds on this foundation by implementing Multi-Version Concurrency Control (MVCC) to provide serializable isolation without traditional locks, using hybrid logical clocks (HLC) to operations and maintain version histories. MVCC stores multiple versions of each key-value pair with timestamps, allowing reads to access consistent snapshots while writes place provisional "write intents" that serve as optimistic locks, resolved via a distributed commit protocol. Concurrency conflicts, such as write-write or write-read interferences, are detected using per-node lock tables and records, with resolutions like timestamp pushing or aborts ensuring serializability. This lockless approach minimizes contention in distributed environments. System tables in the system and crdb_internal schemas manage cluster metadata, including topology details like node liveness (system.nodes), range leases (system.rangelog), and zone configurations that define replication rules per database, table, or index (e.g., num_replicas and locality constraints). Zone configs are hierarchical, inheriting from cluster defaults and overriding for specific objects via SQL statements like ALTER TABLE ... CONFIGURE ZONE. Schema changes, such as adding columns or indexes, are tracked in crdb_internal.schema_changes and propagated atomically across the cluster, updating range descriptors and metadata in meta ranges to reflect new topology without downtime. Rebalancing maintains even data distribution and high availability through automated processes like range splitting, which occurs when a range exceeds its size limit or based on load, creating two balanced sub-ranges whose descriptors update the meta index. Merging consolidates underutilized adjacent ranges to optimize and query efficiency. Lease transfers during rebalancing or relocate leadership to nodes closer to read/write traffic, guided by metrics like QPS and , with operations scheduled periodically (default 10 minutes) or triggered by events like node additions/removals. from failures involves snapshotting replicas to new nodes and replaying logs to catch up, ensuring minimal disruption.

Features

SQL and Transactional Capabilities

CockroachDB provides high compatibility with the wire protocol (version 3.0, or pgwire), enabling seamless integration with most drivers, ORMs, and tools such as and psql. This compatibility extends to the majority of SQL syntax, allowing applications to migrate with minimal modifications while leveraging CockroachDB's distributed architecture. The database ensures full compliance for , guaranteeing atomicity, consistency, isolation, and durability even across distributed nodes. By default, CockroachDB operates at the SERIALIZABLE isolation level—the strongest in the SQL standard—preventing anomalies like dirty reads or lost updates through multi-version and ordering. Distributed spanning multiple are coordinated via the transaction layer, which uses commits to achieve atomicity without traditional two-phase commit blocking, ensuring data correctness in geo-distributed environments. CockroachDB supports advanced SQL features, including joins (such as inner, outer, and cross joins), secondary indexes (including hash-sharded for sequential key optimization and generalized inverted indexes for JSONB and array queries), and stored procedures using or SQL logic callable via the CALL statement. Common Table Expressions (CTEs), available since with recursive and correlated support added in later releases like v20.1 and v21.2, enable complex subquery reuse for improved query readability and performance. These features align closely with semantics, facilitating sophisticated analytical and operational workloads. Schema management in CockroachDB uses DDL statements (e.g., CREATE , ALTER ) that apply atomically across the entire , ensuring consistent state without downtime through online schema changes. These operations are executed in implicit transactions, propagating modifications to all nodes via the distributed mechanism for . In version 25.2, CockroachDB introduced vector indexing in preview, supporting storage of high-dimensional embeddings and efficient similarity searches (e.g., ) via SQL queries, with cosine and inner product distances added in v25.3. This feature became generally available in v25.4. This integration enables and workloads, such as and recommendation systems, directly within the database using CockroachDB's C-SPANN-based indexing protocol.

Scalability and Resilience

CockroachDB achieves horizontal scalability by allowing users to add nodes dynamically to a cluster, which triggers automatic rebalancing of data across all nodes to maintain even distribution and performance. This process ensures that as data and workload volumes grow, the system can scale out seamlessly without manual intervention or downtime. Clusters can support hundreds of nodes, as demonstrated by customer deployments reaching up to 160 nodes while maintaining operational efficiency. The database's resilience is enhanced by features designed to ensure and , including a 99.999% uptime () for multi-region clusters in CockroachDB Cloud. Multi-region replication enables and survival goals, where data is synchronously replicated across multiple geographic locations to withstand outages in entire or . Fast is facilitated through leases, which allow sub-second leader elections and failovers in the underlying consensus protocol, minimizing disruption during node or network failures. Performance optimizations in versions 25.2 and later (as of 2025) deliver significant throughput improvements, with up to 50% gains across various workloads in v25.2 compared to v24.3, alongside further enhancements in v25.3 and v25.4 such as improved vector indexing and a new operator, and reductions in resource utilization for better efficiency on commodity hardware. The system also handles network partitions robustly, as validated through internal benchmarks that simulate adversity scenarios like partitions and regional outages, ensuring consistent performance without . These enhancements contribute to ACID-compliant transactions that remain resilient under load, supporting reliable operations at scale. CockroachDB provides comprehensive and mechanisms, including full and incremental backups that capture changes efficiently to minimize and time costs. With revision enabled, allows restoration to any timestamp within the backup window, preserving granular data states without full re-ingestion. Enterprise-grade (CDC) further supports resilience by streaming row-level changes to downstream systems for real-time replication and . Monitoring and observability are integrated natively, with built-in metrics tracking key indicators such as , throughput, and resource usage across the cluster. SQL diagnostics tools provide insights into query performance and execution plans, aiding in troubleshooting and optimization. CockroachDB exposes these metrics for external tools like and , enabling customizable dashboards and alerting for proactive resilience management.

Deployment and Licensing

Options for Deployment

CockroachDB offers flexible deployment options to suit different operational needs, ranging from self-managed setups to fully managed services. Self-hosted deployments allow users to run CockroachDB on their own , providing full control over the environment. These include single-node configurations ideal for and testing, where a lightweight instance can be started locally without clustering overhead. For production environments, multi-node clusters can be deployed on-premises in private data centers or on virtual machines () across providers, enabling scaling and through manual replication and node management. is supported via , with the CockroachDB Operator—introduced and enhanced in version 25.3—facilitating automated deployment, scaling, and management of clusters in containerized environments. CockroachDB Cloud provides managed alternatives, eliminating much of the operational burden. The serverless option, available as CockroachDB Standard, operates in a multi-tenant architecture with strong tenant isolation, automatically scaling resources based on demand and billing on a pay-per-use model (e.g., per request unit and storage). Dedicated clusters under CockroachDB Advanced offer single-tenant isolation, configurable in single or multi-region setups across AWS, GCP, or , with guarantees like 99.99% uptime and node-based scaling for predictable performance. These cloud deployments support multi-cloud strategies, allowing clusters to span providers for resilience and avoiding . Hybrid deployments bridge self-hosted and cloud environments, supporting seamless migrations from on-premises to cloud or multi-cloud configurations. Users can replicate data across on-premises setups and cloud regions on AWS, GCP, or , leveraging CockroachDB's geo-partitioning for low-latency access and . Installation for self-hosted options is straightforward, with binary downloads available for direct execution on supported operating systems like , macOS, and Windows. Docker images enable containerized deployments for portability, while Helm charts simplify installations by packaging the necessary resources and configurations. Management is streamlined through built-in tools, including the CockroachDB Console—a web-based UI for monitoring cluster health, querying data, and administering settings—and the cockroach sql command-line shell for interactive SQL operations and scripting. These tools apply across self-hosted and cloud deployments, with additional cloud-specific features like (SSO) in .

Licensing Model

CockroachDB's licensing has evolved significantly since its inception to balance community access with sustainable business development. Initially released under the Apache 2.0 License in 2015, the database allowed broad open-source usage and contributions. In 2019, Cockroach Labs transitioned the core edition from Apache 2.0 to the Business Source License (BSL) 1.1, a source-available license that permits evaluation and development but restricts production use by cloud service providers for a three-year change date period, aiming to prevent hyperscalers from offering competing without contribution. features, such as advanced security and backup tools, were governed by a separate proprietary license requiring payment. In August 2024, Cockroach Labs announced a further shift to a unified licensing model, effective with the release of version 24.3 on November 18, 2024, introducing the —a , source-available that consolidates all features under a single offering. This change retires the free Core version entirely, eliminating the previous open-core distinction and requiring a for any production deployment of the full software, though the source code remains publicly accessible for review and non-production use. The transition reflects a strategic focus on enterprise monetization, as the company stated it would "ensure that all of our users have access to the full breadth and scope of CockroachDB innovation while supporting our investment in the product." Under the current model, CockroachDB offers tiered access to accommodate different user needs. A free Developer Edition provides access for non-production environments, such as local development and testing, limited to single-node clusters without specified resource caps. For production use, the Enterprise Edition is free for individual developers and organizations with less than $10 million in annual revenue, enabling small teams and startups to deploy at scale without cost. Larger enterprises must purchase a paid , structured as annual subscriptions based on compute hours and usage, with available upon request from for self-hosted deployments. Compliance with the CockroachDB imposes specific restrictions to protect Cockroach Labs' commercial interests. Self-hosted deployments can obtain perpetual licenses for on-premises or private cloud use, allowing indefinite operation post-subscription expiration provided core terms are met, but updates and support cease without renewal. Cloud-hosted instances, including CockroachDB Cloud, operate on subscription models without perpetual options, with usage metered continuously. Forks of versions prior to v24.3 remain under their original 2.0 or BSL licenses, permitting continued open-source development, though Cockroach Labs provides no support or updates for them. Violations, such as unauthorized production use by large entities, may result in license revocation and legal action, as outlined in the terms. The licensing evolution has sparked discussion within the open-source community, highlighting tensions between accessibility and commercial viability. By retiring the Core offering, Cockroach Labs aims to streamline development and prioritize enterprise-grade support, investing more in features like multi-region replication and AI integrations. Legacy users of pre-2024 versions retain options to and maintain open-source variants, as seen with initiatives like Computer's commitment to sustaining Apache-licensed releases, providing continuity for those wary of shifts. This model positions CockroachDB as a premium solution, appealing to enterprises while offering limited free tiers to foster adoption among developers and smaller organizations.

Adoption

Notable Users

Netflix operates over 380 CockroachDB clusters to power critical workloads including personalization recommendations, billing systems, and content metadata management, with multi-region configurations enabling low-latency access for its global user base. utilizes CockroachDB for and management within its infrastructure, supporting 24/7 platforms through multi-region deployments that provide low-latency reads across the . Lush Cosmetics relies on CockroachDB to manage its platform, handling real-time global inventory tracking and with to optimize stocking and reduce operational complexity across 950 stores in 49 countries. Financial services firms such as deploy CockroachDB for high-volume payments processing and fraud detection, where its distributed architecture supports scalability up to 1.9 petabytes of data and 1.2 million queries per second across hundreds of clusters while maintaining five-nines resiliency for transactional integrity (as of ). The Home Depot uses CockroachDB to support its retail operations, leveraging the database's resilience for managing inventory and customer data at scale.

Use Cases

CockroachDB is particularly well-suited for applications that demand and strict data consistency, such as real-time payments processing, where it supports 24/7 operations with multi-region replication to prevent during transactions. In fraud detection systems, its ACID-compliant transactions enable scalable (IAM) across regions, ensuring secure and consistent user while handling high-velocity data streams. For systems in banking and trading, CockroachDB modernizes core operations by providing resilient, multi-cloud deployments that maintain and compliance with regional regulations through features like data domiciling. In , CockroachDB excels at inventory management by delivering a global view of stock levels through geo-partitioned clusters, enabling accurate tracking and updates during high-traffic events like sales surges without bottlenecks. This horizontal scaling capability ensures low-latency transactions for and pricing adjustments across distributed locations. For gaming platforms, it supports user sessions and leaderboards by maintaining consistent player data with guarantees, dynamically rerouting queries during peak loads to sustain experiences in massively multiplayer environments. CockroachDB's resilience makes it ideal for and , where it manages device by storing data in a fault-tolerant manner, automatically recovering from network partitions to ensure uninterrupted connectivity. In routing optimization and event streaming, its distributed architecture handles high-volume data and real-time updates, providing consistent views for even amid intermittent connectivity issues. With the introduction of distributed vector indexing in version 25.2 (released June 2025), CockroachDB facilitates AI/ integrations by combining embeddings for similarity searches with transactional data in a single database, supporting applications like recommendation engines through pgvector-compatible operations. This enables efficient approximate nearest neighbor queries on billions of while preserving data freshness via incremental updates and SQL joins for hybrid workloads. For internal tools, CockroachDB serves as a databases-as-a-service for developers, offering multi-tenant and scalable metadata storage to streamline workflows in backends. It also powers authentication systems with resilient, multi-region , ensuring secure access management for internal applications without single points of failure.

References

  1. [1]
    Enable modern, resilient applications with CockroachDB
    CockroachDB is a distributed SQL database combining relational and NoSQL features, offering app resilience, effortless scaling, and data locality.
  2. [2]
    Architecture Overview - CockroachDB
    CockroachDB uses layers: SQL, Transactional, Distribution, Replication, and Storage. It converts SQL to key-value data, distributed among nodes, and uses a ...Goals of CockroachDB · Overview · CockroachDB architecture terms
  3. [3]
    CockroachDB 1.0 is production-ready
    May 10, 2017 · Today, we are pleased to announce the release of CockroachDB 1.0, the first open source, cloud-native SQL database. We're also announcing a ...
  4. [4]
    About - CockroachDB
    Cockroach Labs was founded in 2015 to make the best quality tools available to the masses to build their ideas right. CockroachDB is the first of these ...
  5. [5]
    CockroachDB, the database that just won't die - TechCrunch
    Jul 15, 2021 · To realize their ambitions, they created Cockroach Labs, the business entity behind their ambitious open-source database CockroachDB.
  6. [6]
    CockroachDB ❤️ Open Source
    an open source project he had started with Ben Darnell and Peter ...
  7. [7]
    Cockroach Labs - Crunchbase Company Profile & Funding
    Cockroach Labs is behind Cockroach DB, the cloud-native, distributed SQL database to modern cloud applications. It helps companies of all sizes—and the apps ...
  8. [8]
    CockroachDB Security Overview
    CockroachDB, as a distributed SQL database, is uniquely resilient by nature. A cluster can tolerate node failures as long as the majority of nodes remain ...
  9. [9]
    Why Go was the right choice for CockroachDB
    Sep 26, 2023 · *As of October 2023, CockroachDB now has over 600 GitHub contributors and is 89.6% written in Go, along with Java, C++, and Python, plus a ...
  10. [10]
    Cockroach Labs Business Breakdown & Founding Story
    Sep 13, 2023 · Google attempted to address its data overload issues by creating Spanner, a globally distributed relational database that inspired CockroachDB.
  11. [11]
    4 architectural differences between Spanner & CockroachDB
    Apr 24, 2023 · Learn about the four key architectural differences between Google Cloud Spanner and CockroachDB. Both are distributed SQL, general-purpose ...
  12. [12]
    What do you think of the name "CockroachDB"?
    Feb 8, 2023 · Tentative name would be “cockroach”. Very fast, very scalable ... survive failures and remain highly available to their users at all times.
  13. [13]
    The new stack: Meet CockroachDB, the resilient SQL database
    Oct 30, 2015 · CockroachDB is a distributed SQL database built on top of a transactional and consistent key-value store.Missing: 2016 | Show results with:2016
  14. [14]
    After Cockroach Labs went proprietary, one customer took matters ...
    Aug 27, 2024 · ... open-source project under the permissive Apache 2.0 license, which was extremely common at the time. In 2015 they founded Cockroach Labs ...
  15. [15]
    Announcing CockroachDB Dedicated: CockroachDB-as-a-service
    Oct 16, 2019 · Today we announced the beta program for CockroachDB Dedicated, a self-service, fully managed cloud offering of CockroachDB. CockroachDB ...Missing: launch | Show results with:launch
  16. [16]
    CockroachDB Turns Ten: Scaling the Future of Relational Databases
    Feb 18, 2025 · February 8, 2025, holds special meaning for Cockroach Labs – it marks our ten-year anniversary. Reflecting on this milestone, ...
  17. [17]
    Vector Indexing, Performance, and More - CockroachDB
    Jun 3, 2025 · CockroachDB 25.2: Celebrating a decade of innovation with enhanced performance, vector indexing, and more · Performance improvements: 50% ...
  18. [18]
    What's New in v25.3 - CockroachDB
    v25.3.0. Release Date: August 4, 2025. With the release of CockroachDB v25.3, we've added new capabilities to help you migrate ...What's New In V25. 3 · Feature Highlights · Cockroachdb Cloud
  19. [19]
    Deploy CockroachDB on Kubernetes with the CockroachDB Operator
    Sep 10, 2025 · The CockroachDB Operator is a Kubernetes-native tool introduced into Public Preview in August 2025 that automates deployment, scaling, upgrades, ...Missing: v25. | Show results with:v25.
  20. [20]
    Cockroach Labs Raises $278M in Series F Funding
    Cockroach Labs, the company behind the leading cloud-native distributed SQL database CockroachDB, today announced its Series F for $278 million in new funding ...Missing: milestones | Show results with:milestones
  21. [21]
    Replication Layer - CockroachDB
    CockroachDB is considered a CAP-Consistent (CP) system under the CAP theorem. CockroachDB prioritizes data consistency, but also provides high-availability ...
  22. [22]
    What are the limits of the CAP theorem? - CockroachDB
    May 5, 2022 · This post explains how CAP-Consistent systems can be highly available, how the CAP theorem applies to CockroachDB, and why consistency is ...Realistic High Availability · Making the Right CAP... · CAP Theorem in CockroachDBMissing: principles | Show results with:principles
  23. [23]
    Transaction Layer - CockroachDB
    The transaction layer of CockroachDB's architecture implements support for ACID transactions by coordinating concurrent operations.
  24. [24]
    How CockroachDB does distributed, atomic transactions
    Sep 2, 2015 · One of the headline features of CockroachDB is its full support for ACID transactions across arbitrary keys in a distributed database.Strategy · Switch: CockroachDB... · Stage: Write Intents · Filter: Reading an Intent
  25. [25]
    Range / Shard - CockroachDB
    In CockroachDB, a range is 512 MiB or smaller. This default range size is a sweet spot – small enough to move quickly between nodes, but large enough to store ...
  26. [26]
    Distribution Layer - CockroachDB
    Because range descriptors comprise the key-value data of the meta2 range, each node's meta2 cache also stores range descriptors. Range descriptors are updated ...Distribution Layer · Monolithic Sorted Map... · Technical Details And...
  27. [27]
  28. [28]
    Choose a Deployment Option - CockroachDB
    CockroachDB Standard: A fully managed, multi-tenant CockroachDB deployment, in a single region and cloud (AWS or GCP). Delivers an instant, autoscaling ...
  29. [29]
    How we built a serverless SQL database - CockroachDB
    Aug 25, 2025 · We've created an innovative Serverless architecture that allows us to securely host thousands of virtualized CockroachDB database clusters on a single ...
  30. [30]
    Data Partitioning by Location - Geo-Partitioning | Cockroach Labs
    Geo-Partitioning allows for database partioning by location, tying your data to a location for performance or compliance. Only CockroachDB can do that.Missing: low- | Show results with:low-
  31. [31]
    How to lower p99 latency by geo-partitioning data - CockroachDB
    Aug 25, 2022 · Geo-partitioning minimizes latency by controlling data location at the row level, reducing the distance data travels, and keeping data close to ...
  32. [32]
    Regional Tables - CockroachDB
    Regional tables work well when your application requires low-latency reads and writes for an entire table from a single region.Missing: geo- | Show results with:geo-<|control11|><|separator|>
  33. [33]
    Intro to multi-region distributed SQL topologies - CockroachDB
    Oct 21, 2020 · The geo-partitioned replicas topology is a good choice for tables with the following requirements: Read and write latency must be low. Rows in ...
  34. [34]
    Storage Layer - CockroachDB
    It is a key-value store, which makes mapping to our key-value layer simple; It provides atomic write batches and snapshots, which give us a subset of ...Overview · Components · Pebble · MVCC
  35. [35]
  36. [36]
    CockroachDB: The Resilient Geo-Distributed SQL Database
    White Paper | "CockroachDB: The Resilient Geo-Distributed SQL Database" (SIGMOD 2020) codifies five years of research at Cockroach Labs.
  37. [37]
  38. [38]
    crdb_internal - CockroachDB
    The crdb_internal system catalog is a schema that contains information about internal objects, processes, and metrics related to a specific database.
  39. [39]
    Replication Controls - CockroachDB
    The key-value pairs should be ordered into locality tiers that range from most inclusive to least inclusive (e.g., region before availability zone as in ...
  40. [40]
    PostgreSQL Compatibility - CockroachDB
    CockroachDB is compatible with version 3.0 of the PostgreSQL wire protocol (pgwire) and works with the majority of PostgreSQL database tools such as DBeaver, ...Partially Supported Features · Features that differ from... · Overflow of float
  41. [41]
    Transactions - CockroachDB
    Each transaction guarantees ACID semantics spanning arbitrary tables and rows, even when data is distributed. If a transaction succeeds, all mutations are ...
  42. [42]
    Parallel Commits: An atomic commit protocol for globally distributed ...
    Nov 7, 2019 · To accomplish this goal, we had to throw away two-phase commit and rework how transactions in CockroachDB arrive at a committed state.The problem with two-phase... · Parallel Commits · Changing the commit condition
  43. [43]
    SQL Feature Support in CockroachDB
    CockroachDB v25.3 supports the following standard SQL features and common extensions. Component lists the components that are commonly considered part of ...Missing: CTE | Show results with:CTE
  44. [44]
    Indexes - CockroachDB
    Indexes improve your database's performance by helping SQL locate data without having to look through every row of a table.Secondary Indexes · Connect to CockroachDB · Deploy CockroachDB On... · MovRMissing: CTE | Show results with:CTE
  45. [45]
    CREATE INDEX - CockroachDB
    The CREATE INDEX statement creates an index for a table. Indexes improve your database's performance by helping SQL quickly locate data.
  46. [46]
    Stored Procedures - CockroachDB
    A stored procedure is a database object consisting of PL/pgSQL or SQL statements that can be issued with a single CALL statement. This allows complex logic ...Missing: CTE joins<|separator|>
  47. [47]
    Common Table Expressions (WITH Queries) - CockroachDB
    A common table expression (CTE), also called a WITH query, provides a shorthand name to a possibly complex subquery before it is used in a larger query context.
  48. [48]
  49. [49]
    What's New in v25.2 - CockroachDB
    For a complete list of features and changes in v25.2, including bug fixes and performance improvements, refer to the release notes for v25.2 testing releases.Missing: milestones 2018 2024
  50. [50]
    Why CockroachDB?
    CockroachDB is inspired by Google's Spanner and F1 technologies, and the source code is freely available. Tip: For a deeper dive into CockroachDB's ...Missing: founders | Show results with:founders
  51. [51]
    How we stress test and benchmark CockroachDB for global scale
    Jan 25, 2024 · An IaaS company with 20 CockroachDB clusters at ~100+ nodes each with the largest being 160 nodes. Storage density across clusters ranges from ...Missing: thousands | Show results with:thousands
  52. [52]
    Cockroach Labs Technical Service Level Agreement
    Sep 26, 2024 · Where Cockroach Labs has agreed to provide you with Uptime SLAs with ... 100%. *99.999% for Multi-Region Clusters under Advanced Plan.
  53. [53]
    Multi-Region Survival Goals - CockroachDB
    A survival goal dictates how many simultaneous failure(s) a database can survive. All tables within the same database operate with the same survival goal.
  54. [54]
    Ideal isn't real: Stress testing CockroachDB's resilience
    CockroachDB's new benchmark, "Performance under Adversity," tests real-world scenarios: network partitions, regional outages, disk stalls, and so much more.
  55. [55]
    Take Full and Incremental Backups - CockroachDB
    Incremental backups form chains between full backups. Each incremental backup contains only the data that has changed since a base set of backups. This base set ...Backup collections · Full backups · Incremental backups · Examples
  56. [56]
    Take Backups with Revision History and Restore from a Point-in-time
    Dec 13, 2021 · Taking incremental backups with revision history allows you to back up every change made since the last backup and within the garbage collection ...
  57. [57]
    Change Data Capture Overview - CockroachDB
    Change data capture (CDC) detects row-level data changes in CockroachDB and emits those changes as messages for downstream processing.
  58. [58]
    Monitoring and Alerting - CockroachDB
    This page describes the monitoring and observability tools that are built into CockroachDB self-hosted and shows how to collect your cluster's metrics using ...
  59. [59]
    Monitor CockroachDB with Prometheus
    CockroachDB generates detailed time series metrics for each node in a cluster. This page shows you how to pull these metrics into Prometheus, ...
  60. [60]
    Deploy CockroachDB On-Premises
    This tutorial shows you how to manually deploy a secure multi-node CockroachDB cluster on multiple machines, using HAProxy load balancers to distribute client ...Before you begin · Step 3. Start nodes · Step 6. Set up load balancing
  61. [61]
    CockroachDB 25.3 release
    There's a new Kubernetes operator to simplify deployment. We're also introducing support for the Oracle dialect in MOLT Fetch, the CockroachDB migration toolkit ...Missing: v25. | Show results with:v25.
  62. [62]
    Quickstart with CockroachDB
    This page shows you how to use free trial credits to deploy a CockroachDB cluster on CockroachDB Standard (Preview) and use sample code to run your first ...Create a free trial cluster · Connect to the cluster · Configure the connection...
  63. [63]
  64. [64]
    CockroachDB Cloud | Fast. Flexible. Fully managed.
    Up to 99.999% availability SLA. Achieve industry-leading uptime with multi-active clusters designed for zero downtime. Check T2 Lt copy. Effortless horizontal ...
  65. [65]
    Cloud Journeys: Multi-Cloud and Beyond with Distributed SQL
    Nov 12, 2024 · A channel management tool for their streaming services, now runs on CockroachDB Cloud across multiple GCP regions, with plans to expand to AWS.
  66. [66]
    Cockroach Rescinds Open Core for a Free Enterprise Version
    Cockroach Labs is eliminating the free-to-use “open core” stripped-down version of its distributed database, offering in its place the more fully-featured ...
  67. [67]
    CockroachDB changes its open-source licensing model - SD Times
    Jun 5, 2019 · As a result of these changes in the industry, CockroachDB will now be offered under a permissive version of the Business Source License (BSL).Missing: history | Show results with:history
  68. [68]
    Cockroach and the Source Available Future - RedMonk
    Jun 21, 2019 · Earlier this month, the database company Cockroach Labs relicensed its flagship database product. This is notable for two reasons.<|control11|><|separator|>
  69. [69]
    Cockroach Labs shakes up its licensing to force bigger companies ...
    Aug 15, 2024 · Cockroach Labs, the developer behind CockroachDB, is changing its licensing once again -- five years after abandoning open source.
  70. [70]
    Concerns Rise in Open-Source Community as CockroachDB Ends ...
    The CockroachDB license changes will take effect in November, with the release of version 24.3. CockroachDB Labs will retire the Core offering ...
  71. [71]
    Cockroach Labs changes its self-hosting license to a single ...
    Aug 15, 2024 · “In consolidating to a single CockroachDB Enterprise offering, we are ensuring that all of our users have access to the full breadth and scope ...
  72. [72]
    CockroachDB retires self-hosted Core offering, makes Enterprise ...
    Aug 15, 2024 · Starting November 18, 2024, CockroachDB Core will be retired and the company will only offer CockroachDB Enterprise, which will be free to individual ...
  73. [73]
    Cockroach Labs Shifts from Open Core to Single Enterprise Model
    Aug 19, 2024 · The new licensing strategy involves consolidating the self-hosted version of CockroachDB under a single license model that the company is ...
  74. [74]
    CockroachDB Pricing | Cockroach Labs
    Uptime SLA. 99.99%. 99.99%. 99.999% for multi-region. Cloud availability. AWS and GCP. AWS and GCP. AWS, GCP and Azure. Automatic 3x data replication. Multi- ...
  75. [75]
    Licensing FAQs - CockroachDB
    The table of licenses below refers to options for self-hosted deployments. All Cloud deployments automatically have a valid Enterprise license.Missing: milestones 2018 2024
  76. [76]
    CockroachDB license change - Hacker News
    Aug 15, 2024 · Source code in this repository is variously licensed under the Business Source License 1.1 (BSL), the CockroachDB Community License (CCL), the ...
  77. [77]
    The history of databases at Netflix: From Cassandra to CockroachDB
    Nov 27, 2023 · Learn why Netflix adopted CockroachDB as a scalable SQL database and how they're using CockroachDB today.Missing: seminal | Show results with:seminal<|control11|><|separator|>
  78. [78]
    Why a major cable company switched from Amazon Aurora to ...
    Dec 22, 2020 · Low latency reads, from anywhere in the US. They turned to CockroachDB for its strong resiliency, consistency, and low-latency reads. The end ...Missing: Comcast | Show results with:Comcast
  79. [79]
    How LUSH optimized global inventory management ... - CockroachDB
    Jan 25, 2022 · Lush uses CockroachDB for real-time global inventory, enabling optimized stocking, and reducing operational complexity by managing stock and ...Lush Architecture Prior to their... · How Lush Evaluated...
  80. [80]
    How DoorDash manages 1.9PB and 1.2M QPS across 300 clusters
    Feb 7, 2024 · DoorDash engineers to leverage CockroachDB and perform tasks like schema management, user management, index operations, changefeed creation, query optimization ...What does CockroachDB at... · Don't be a gatekeeper · Automate
  81. [81]
    Trusted by Enterprises | Customer Success with CockroachDB
    Discover how leading enterprises build scalable, resilient applications with CockroachDB. Read customer success stories and learn from real-world case studies.Missing: Siemens | Show results with:Siemens
  82. [82]
    Top 5 financial services use cases for CockroachDB
    Jul 8, 2025 · When you're in charge of processing payments, or managing your customers' access to their banking app, or even delivering a reliable ...Missing: e- ML
  83. [83]
    CockroachDB for Retail & eCommerce
    Orders & Inventory Management. Manage inventory, pricing, and deliveries across the globe to optimize eCommerce from orders through fulfillment.
  84. [84]
    CockroachDB for Orders & Inventory Management
    CockroachDB simplifies your architecture with a single logical database to deliver a global view of your ecommerce data.
  85. [85]
    CockroachDB for Gaming | Use Case Overview
    CockroachDB's ACID-compliant transactions ensure that every item drop, character level-up, and world event remains consistent and accurate across all nodes ...
  86. [86]
    12 Mission-Critical Use Cases Backed by CockroachDB
    May 7, 2024 · In this section we cover the following CockroachDB use cases: order and inventory management, routing and logistics, IoT and device management, ...Missing: e- commerce
  87. [87]
    Introducing Distributed Vector Indexing to CockroachDB
    Jun 4, 2025 · With the 25.2 release we deliver vector indexing to further enable customers to combine transactional data with vector data into a single data store.