Skip to main content
While developing an application against CockroachDB, it’s sufficient to deploy a single-node cluster close to your test application, whether that’s on a single VM or on your laptop.
If you haven’t already, to ensure you choose the right one for your use case.

Before you begin

  • Multi-region topology patterns are almost always table-specific. If you haven’t already, to ensure you choose the right one for each of your tables.
  • Review how data is replicated and distributed across a cluster, and how this affects performance. It is especially important to understand the concept of the “leaseholder”. For a summary, see . For a deeper dive, see the CockroachDB .
  • Review the concept of , which CockroachDB uses to place and balance data based on how you define .
  • Review the recommendations and requirements in our .
  • This topology doesn’t account for hardware specifications, so be sure to follow our and perform a POC to size hardware for your use case. For optimal cluster performance, Cockroach Labs recommends that all nodes use the same hardware and operating system.
  • Adopt relevant to ensure optimal performance.

Configuration

Development topology For this pattern, you can either or .

Characteristics

Latency

With the CockroachDB node in the same region as your client, and without the overhead of replication, both read and write latency are very low: Development topology read and write latency

Resiliency

In a single-node cluster, CockroachDB does not replicate data and, therefore, is not resilient to failures. If the machine where the node is running fails, or if the region or availability zone containing the machine fails, the cluster becomes unavailable: Development topology single failure

See also

    • Single-region patterns
    • Multi-region patterns