Practical CockroachDB: Building Fault-Tolerant Distributed SQL Databases

  • 2h 28m
  • Rob Reid
  • Apress
  • 2022

Get a practical introduction to CockroachDB. This book starts with installation and foundational concepts and takes you through to creating clusters that are ready for production environments. You will learn how to create, optimize, and operate CockroarchDB clusters in single and multi-region environments. You will encounter anti-patterns to avoid, as well as testing techniques for integration and load testing.

The book explains why CockroachDB exists, goes over its major benefits, and quickly transitions into installing and configuring CockroachDB. Just as quickly, you’ll be creating databases, getting data into those databases, and querying that data from your applications. You’ll progress to data privacy laws such as GDPR and CCPA, and learn how CockroachDB’s global distribution features can help you comply with ever-shifting data sovereignty regulations. From there, you’ll move into deployment topologies, guidance on integration testing and load testing, best practices, and a readiness checklist for production deployments.

What You Will Learn

  • Deploy and interact with CockroachDB
  • Design and optimize databases and tables
  • Choose the correct data types for modeling your data
  • Protect data with database and table encryption
  • Achieve compliance with international data privacy regulations
  • Scale your databases in a way that enhances their performance
  • Monitor changes to the data and health of your databases

About the Author

​Rob Reid is a software developer from London, England. In his career, he has written backend, frontend, and messaging software for the police, travel, finance, commodity, sports betting, telecom, retail, and aerospace industries. He is an avid user of CockroachDB and has worked with the Cockroach Labs team in recent years to promote the database and embed it into development teams in the US and UK.

In this Book

  • Introduction
  • The Reason for CockroachDB
  • Installing CockroachDB
  • Concepts
  • Managing CockroachDB from the Command Line
  • Interacting with CockroachDB
  • Data Privacy
  • Deployment Topologies
  • Testing
  • Production