Skip to content
Search

CockroachDB

lastmod 2024-12-11created 2015-12-194 edits

CockroachDB was created by former Google employees, who made a large-enterprise data solution open source. CockroachDB is a highly scalable, geographically distributed and replicated transactional data store.

Google developed Spanner to maintain terabytes of data transacted through its global online properties. This powerful tool gives Google scalability, survivability, and transactional capabilities, and the CockroachDB team brought these characteristics straight to the open-source community. Like a real cockroach, CockroachDB can survive without its head. That is, it can keep operating even if any node fails. This open-source project has a solid community of veteran contributors. The founders are also actively building the community through social media, GitHub, networking, conferences, and meetups.

One of 7 databases for 2025

  • See Database#7 databases for 2025 (GeekNews)
  • CockroachDB is a globally distributed database
    • Compatible with the PostgreSQL wire protocol; supports horizontal scaling and strong consistency
    • Its design is inspired by Google Spanner and enables scaling a database across multiple regions
  • Key technical features of CockroachDB
    • Time synchronization technology:
      • Google Spanner uses atomic clocks and GPS clocks, but CockroachDB is designed to run on commodity hardware
      • Corrects NTP-based synchronization delay, compares clock drift between nodes, and terminates members that exceed the maximum offset
    • Multi-region configuration:
      • The Table Localities feature allows optimization based on read/write trade-offs
      • Data is distributed according to users' geographic locations, improving performance and latency
  • Suggestions for learning with CockroachDB
    • Reimplement the MovR example:
      • Implement MovR (a distributed application example) using the language and framework of your choice
    • Experiment with designing global applications using CockroachDB's multi-region and scaling strategies
  • Why choose CockroachDB
    • Unlike other distributed databases such as DynamoDB, it can be run locally for free
    • Offers the distinctive combination of strong consistency and global distribution

See also

Favorite site

author Zer0 sitemap