Sharded OLTP Transaction Routing to Reduce GTM Bottlenecks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Distributed online transaction processing (OLTP) systems with sharded databases face performance degradation due to synchronization overhead and bottlenecks caused by centralized global transaction managers (GTM) when handling multi-node transactions.

Innovation Solution

Implement a GTM-lite approach that distinguishes between single-shard and multi-shard transactions, optimizing single-shard transactions by avoiding GTM interactions and managing multi-shard transactions through a centralized GTM only, reducing unnecessary communication and synchronization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a centralized global transaction manager (GTM) is used to synchronize multi-shard transactions, then global consistency is improved, but system throughput and scalability deteriorate due to synchronization overhead and bottlenecks

Engineering Contradiction:
Improveglobal consistencyVSAvoidsystem throughput
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments transaction management into two categories: single-shard transactions handled locally by data nodes without GTM involvement, and multi-shard transactions requiring GTM coordination. This segmentation allows the majority of transactions to bypass the GTM bottleneck, improving overall throughput while maintaining consistency for distributed transactions through selective application of centralized management.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies different transaction management strategies based on the specific characteristics of each transaction type. Single-shard transactions receive local, autonomous handling with direct data node processing, while multi-shard transactions receive centralized coordination. This local quality approach optimizes performance for each transaction category according to its specific requirements.

Inventive Principle:
Principle #3Local quality

2Reliability

If GTM interactions are performed for all transactions, then global consistent view is maintained, but latency increases due to unnecessary communication overhead

Engineering Contradiction:
Improveconsistent viewVSAvoidtransaction latency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent extracts GTM interactions from the common transaction path, removing them as a mandatory step for all transactions. Instead, GTM involvement is extracted and applied only to multi-shard transactions that genuinely require centralized coordination for consistency, thereby eliminating unnecessary communication overhead for single-shard transactions and reducing overall latency.

Inventive Principle:
Principle #2Taking out (Extraction)

3Productivity

If data is distributed across multiple shards to achieve scalable performance, then processing capacity is improved, but synchronization complexity increases for multi-node transactions

Engineering Contradiction:
Improveprocessing capacityVSAvoidsynchronization complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the synchronization problem by identifying and separating single-shard transactions from multi-shard transactions. This segmentation simplifies the synchronization complexity by applying lightweight local management to single-shard operations and reserved centralized coordination only when multi-node synchronization is genuinely required, thereby managing complexity proportionally to actual needs.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentEP4270211B1High-throughput distributed transaction management for globally consistent sharded OLTP system and method of implementing
Publication Date: 2026.04.08 HUAWEI TECH CO LTD
  • EP4270211B1 patent drawingFigure 1
  • EP4270211B1 patent drawingFigure 2A~2B
  • EP4270211B1 patent drawingFigure 3

AI summary

A system and method for improved online transaction processing (OLTP) in a sharded database is provided. Overhead associated with a global transaction manager is reduced and scalability improved by determining whether incoming queries are single-shard transactions or multi-shard transactions. For multi-shard transactions, a distributed transaction ID (DXID) is requested from the GTM, and then forwarded with the query to one or more data notes. For single-shard transactions, the query is sent to a data node without requesting a DXID from the GTM.