Book description
Get the lowdown on CockroachDB, the distributed SQL database built to handle the demands of today's data-driven cloud applications. In this hands-on guide, software developers, architects, and DevOps/SRE teams will learn how to use CockroachDB to create applications that scale elastically and provide seamless delivery for end users while remaining indestructible. Teams will also learn how to migrate existing applications to CockroachDB's performant, cloud native data architecture.
If you're familiar with distributed systems, you'll quickly discover the benefits of strong data correctness and consistency guarantees as well as optimizations for delivering ultra low latencies to globally distributed end users.
You'll learn how to:
- Design and build applications for distributed infrastructure, including data modeling and schema design
- Migrate data into CockroachDB
- Read and write data and run ACID transactions across distributed infrastructure
- Plan a CockroachDB deployment for resiliency across single region and multi-region clusters
- Secure, monitor, and optimize your CockroachDB deployment
Publisher resources
Table of contents
- Preface
- I. Introduction to CockroachDB
- 1. Introduction to CockroachDB
- 2. CockroachDB Architecture
- 3. Getting Started
- 4. CockroachDB SQL
- II. Developing Applications with CockroachDB
-
5. CockroachDB Schema Design
- Logical Data Modeling
- Physical Design
- Denormalization
- JSON Document Models
-
Indexes
- Index Selectivity
- Index Break-Even Point
- Index Overhead
- Composite Indexes
- Covering Indexes
- Composite and Covering Index Performance
- Guidelines for Composite Indexes
- Indexes and Null Values
- Inverted Indexes
- Partial Indexes
- Sort-Optimizing Indexes
- Expression Indexes
- Spatial Indexes
- Hash-Sharded Indexes
- Measuring Index Effectiveness
- Summary
-
6. Application Design and Implementation
- CockroachDB Programming
-
Managing Transactions
- Transaction Retry Errors
- Implementing Transaction Retries
- Automatic Transaction Retries
- Avoiding Transaction Retry Errors with FOR UPDATE
- Reducing Contention by Eliminating Hot Rows
- Reducing Transaction Elapsed Time
- Reordering Statements
- Time Travel Queries
- Ambiguous Transactions Errors
- Deadlocks
- Transaction Priorities
- Working with ORM Frameworks
- Summary
- 7. Application Migration and Integration
- 8. SQL Tuning
- III. Deploying and Administering CockroachDB
- 9. Planning a Deployment
-
10. Single-Region Deployment
-
Deploying On-Premise or On-Cloud
- Firewall Configuration
- Operating System Configuration
- Clock Synchronization On-Premise
- Clock Synchronization on Cloud Platforms
- Creating Certificates
- Configuring the Nodes
- Creating a Ballast File
- Initializing the Cluster
- Creating the First User
- Installing a Load Balancer (On-Premise)
- Cloud Load Balancers
- Configuring Regions and Zones
- Deploying on Kubernetes
- Summary
-
Deploying On-Premise or On-Cloud
- 11. Multiregion Deployment
- 12. Backup and Disaster Recovery
- 13. Security
- 14. Administration and Troubleshooting
- 15. Cluster Optimization
- Index
- About the Authors
Product information
- Title: CockroachDB: The Definitive Guide
- Author(s):
- Release date: April 2022
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098100247
You might also like
book
WebAssembly: The Definitive Guide
WebAssembly: The Definitive Guide is a thorough and accessible introduction to one of the most transformative …
book
Efficient Go
With technological advancements, fast markets, and higher complexity of systems, software engineers tend to skip the …
book
Istio in Action
Solve difficult service-to-service communication challenges around security, observability, routing, and resilience with an Istio-based service mesh. …
book
Building Micro-Frontends
What's the answer to today's increasingly complex web applications? Micro-frontends. Inspired by the microservices model, this …