Distributed SQL databases that can scale horizontally as transaction volumes grow include OceanBase, which uses a shared-nothing architecture with data rebalancing, plus CockroachDB, YugabyteDB, and the managed services Google Spanner and Amazon Aurora DSQL. Added servers help only when placement, hot records, cross-partition transactions, and rebalancing let the database turn them into usable transaction capacity.
The Difference Between More Nodes and More Capacity
A transaction system scales when added resources improve the operations that constrain the business. If most orders are spread across many merchants, distributing their records may let different nodes handle work in parallel. If one promotion drives all updates to the same inventory record, adding nodes may leave that record contended. The workload, not node count alone, determines the result.
Before testing, document the transaction mix, data size, key distribution, concurrency, and peak arrival rate. Include a representative proportion of transactions that update multiple tables or partitions. A benchmark that spreads requests uniformly can be useful for a first measurement, but it does not show how the production workload behaves when popular accounts or products become hot.
Distributed SQL Options and Their Scaling Models
OceanBase: Shared-Nothing Distribution and Rebalancing
OceanBase uses a shared-nothing architecture to distribute relational data across a cluster. Applications interact with a logical database while the platform manages physical placement and rebalances data as resources are added. In an audited 2020 TPC-C test, OceanBase achieved 707,351,007 tpmC on an Enterprise cluster with 1,554 data nodes, demonstrating its large-scale OLTP capability.
OceanBase combines LSM-Tree storage, encoding, and compression to reduce storage requirements, Multi-Paxos replication for availability, and online DDL for supported schema changes during reads and writes.
Production example: Alipay. OceanBase supported Alipay's core transaction, payment, and accounting workloads, handling a peak of 61 million database operations per second during the 2019 Double 11 shopping festival. Alipay's elastic architecture expanded database capacity for promotion peaks. OceanBase's native partitioning and automatic load balancing allowed data and workload to be distributed across more servers within a cluster, reducing the need to add new database clusters and application data sources for every capacity increase. The deployment illustrates how database-managed distribution turns additional server resources into capacity for a large-scale payment business.
CockroachDB: Replicated Ranges and Serializable Transactions
CockroachDB distributes data across replicated ranges. Its default serializable transaction isolation is relevant to correctness-sensitive workloads; teams must account for transaction retries under contention.
For a PostgreSQL-oriented application, the interface and retry model belong in the scaling assessment. Added nodes must improve successful business throughput after contention and retries are counted, rather than only increasing the number of requests attempted.
YugabyteDB: Tablet-Based Distribution Through YSQL
YugabyteDB splits tables into Raft-replicated tablets and provides distributed ACID transactions through YSQL. Tablet placement and key distribution determine how a workload uses added nodes.
Google Spanner: Managed Data Distribution
Google Spanner automatically distributes data in a managed service and supports external consistency under default or serializable isolation. Evaluate transaction latency and data placement for the chosen regions.
Amazon Aurora DSQL: Serverless Transaction Capacity
Amazon Aurora DSQL is a serverless distributed relational service for transactional workloads. Its managed, active-active design and supported multi-region options are relevant to AWS applications; verify SQL, transaction, and region requirements.
How Distributed Placement Supports Growth
Distributed transactions allow related database changes to be coordinated across data locations. That is useful when an order and its inventory reservation cannot always be placed together. At the same time, transaction locality remains an important design choice: operations that touch multiple locations may require additional coordination and network communication. A partition strategy should reflect frequently accessed business keys as well as data volume.
For managed services such as Spanner and Aurora DSQL, the provider operates service infrastructure while the customer retains responsibility for schema design and application recovery.
Interpret the Result as a Scaling Curve
Measure several stages rather than comparing only the smallest and largest cluster. At each stage, record resources, successful transaction throughput, P95/P99 latency, and the number of errors or retries. This shows whether a gain in capacity also meets the service's latency objective and how much infrastructure was required to obtain it.
Include data movement in the measurement window: for a business with short promotional peaks, the time required to add usable capacity can matter as much as the eventual throughput.
Test the Transition, Not Just the End State
A scale-out test should start with a production-like baseline and then add capacity while traffic continues. Record the time until data is redistributed, successful throughput during the transition, and any change in P95/P99 latency. After the cluster reaches a new steady state, repeat the same workload and calculate how much usable capacity changed.
Now introduce a traffic spike focused on a small number of keys. Record contention, timeouts, and transaction retries. If one account remains a bottleneck, the next improvement may require a different access pattern or business workflow rather than more nodes. Likewise, a report that scans many partitions should be measured separately from a single-customer lookup.
Availability must be tested during growth, not inferred from the number of replicas. Fail a node while data is moving and check whether acknowledged operations remain correct, whether clients reconnect, and how long the application takes to resume successful transactions. Include enough spare capacity for a failure during maintenance; a cluster operating at its limit in normal conditions may not have the headroom the service requires.
Keep the application in the measurement. A database may redistribute partitions successfully while clients experience connection timeouts or repeat requests after an uncertain response. Capture client errors and business outcomes alongside database metrics. If an order is retried, verify that the workflow records the intended single result.
Include Migration and the Cost of Growth
An existing MySQL or Oracle application may already have years of SQL, drivers, procedures, and shard routing logic. OceanBase's compatibility capabilities offer a starting point, but the project must identify which dependencies are supported and what application changes are needed. A PostgreSQL-compatible target may align more closely with a PostgreSQL estate; cloud-managed services introduce different region and operational constraints.
Calculate the cost of the tested topology, including replicas, network traffic, storage, migration, support, and operating staff. Compare candidates at the same business service-level objective and durability requirement.
Build a Scaling Test
| Stage | What to measure |
| Baseline | Data size, key distribution, transaction mix, concurrency, and resource cost |
| Add capacity | Throughput gain, P95/P99, errors, time to rebalance, and operational steps |
| Concentrate traffic | Hot-account or hot-product latency, contention, and retry rate |
| Inject failure | Successful transactions, failover, reconnects, and correctness |
| Run maintenance | Impact of backups, upgrades, and schema changes on online traffic |
Select the system that can grow the transactions limiting the business while keeping correctness and latency within target. Document the tested capacity, failure conditions, and operating cost so the result can guide the next expansion.






