Skip to content
Spacetime·

🔄CockroachDB Scales Storage Horizontally, But at What Cost?

Horizontal Scaling: More Machines, Less Performance?

TL;DR

CockroachDB scales storage horizontally, spreading data across the cluster. However, this comes with a significant performance overhead, especially under contention. Developers need to weigh the benefits against the costs.

CockroachDB scales storage horizontally by spreading data across the cluster, shipping October 31st, 2026. However, this comes with a significant performance overhead, especially under contention. Developers need to weigh the benefits of horizontal scalability against the costs, particularly for OLTP workloads. Key details: CockroachDB replicates data to two other machines for redundancy, and transactions often pay distributed concurrency-control overhead. Spacetime offers an alternative, providing high performance under contention and tools for scaling parallelizable workloads.

CockroachDB Scales Storage Horizontally, But at What Cost? — Spacetime

Key Points

1

CockroachDB scales storage horizontally, spreading each table's data across the cluster, shipping October 31st, 2026.

2

CockroachDB replicates data to two other machines for redundancy, ensuring high availability.

3

Transactions often pay distributed concurrency-control overhead, leading to performance degradation under contention.

4

Spacetime provides high performance under contention and tools for scaling parallelizable workloads.

5

OLTP databases that claim general horizontal scalability often suffer from enormous overhead per transaction.

Why It Matters

If you're running CockroachDB for OLTP workloads, this impacts your performance and scalability decisions. The overhead of horizontal scaling can be significant, especially under contention. Smaller databases might benefit from vertical scaling instead. Anyone considering CockroachDB should evaluate the tradeoffs carefully.

CockroachDBhorizontal-scalingOLTPperformance-overheadstorage-scalability

Frequently Asked Questions

Why does this matter?

If you're running CockroachDB for OLTP workloads, this impacts your performance and scalability decisions. The overhead of horizontal scaling can be significant, especially under contention. Smaller databases might benefit from vertical scaling instead. Anyone considering CockroachDB should evaluate the tradeoffs carefully.

What happened?

CockroachDB scales storage horizontally, spreading data across the cluster. However, this comes with a significant performance overhead, especially under contention. Developers need to weigh the benefits against the costs.

Comments

Subscribe to join the conversation...

Be the first to comment

Enjoyed this article?

Get it daily. 7am. Free. Reads in 5 minutes.

Join 3,463 builders reading daily.

Also get