Fan-out System for Distributed Database Range Query Workload Balancing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Distributed database management systems face inefficiencies in range queries and workload distribution, leading to hotspots and uneven resource utilization due to random data placement, which affects performance and scalability.

Innovation Solution

Implementing a fan-out system that uses composite primary keys with a leading hash key and range key to distribute data non-randomly, allowing for efficient range queries and workload balancing by creating fan-out groups and adjusting their structure based on predictive models and workload metrics.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If items are randomly distributed between computing nodes, then read and write operations are evenly distributed across nodes, but range queries over hash key values become inefficient because items with similar hash key values are widely distributed

Engineering Contradiction:
Improveread and write operation performanceVSAvoidrange query time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent segments the data distribution strategy by introducing a two-level hierarchy: hash key-based distribution for random access and range key-based grouping for sequential access. This segmentation allows different query types to be optimized independently, resolving the contradiction between random operation efficiency and range query performance.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent adds a second dimension to the primary key structure by introducing range keys alongside hash keys. This dimensional expansion enables the system to simultaneously support both random hashing and ordered range queries, as items are now organized along two independent axes rather than a single random distribution axis.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Loss of time

If items are non-randomly distributed to improve range query performance, then range queries become efficient, but hotspots occur where workload is overly concentrated on particular computing nodes

Engineering Contradiction:
Improverange query timeVSAvoidworkload distribution
Core Design Contradiction:
Loss of timeVSProductivity

Solution Approach 1:

The patent applies local quality by making the distribution strategy adaptive rather than uniform. The system dynamically adjusts the number of fan-out partitions for each hash key group based on local workload characteristics, allowing hot partitions to receive additional partitions while cold partitions maintain fewer, thus optimizing range query performance without creating hotspots.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent introduces dynamic adjustment of fan-out partition counts based on real-time workload metrics. The system continuously monitors partition performance and adjusts the distribution strategy accordingly, making the data placement flexible and adaptive to changing query patterns, thereby preventing hotspot formation while maintaining range query efficiency.

Inventive Principle:
Principle #15Dynamics

3Device complexity

If fixed capacity is allocated to each partition, then resource management is simple, but partitions experiencing hotspots cannot handle increased workload

Engineering Contradiction:
Improvecapacity allocation managementVSAvoidhotspot handling capability
Core Design Contradiction:
Device complexityVSReliability

Solution Approach 1:

The patent implements feedback mechanisms that monitor partition workload metrics and use this information to dynamically adjust fan-out partition allocation. This closed-loop control system detects hotspots through performance monitoring and automatically responds by adding partitions to affected hash key groups, ensuring reliable hotspot handling while maintaining manageable complexity through automated decision-making.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS10866970B1Range query capacity allocation
Publication Date: 2020.12.15 AMAZON TECH INC
  • US10866970B1 patent drawing
  • US10866970B1 patent drawing
  • US10866970B1 patent drawing

AI summary

Distributed database management systems may perform range queries over the leading portion of a primary key. Non-random distribution of data may improve performance related to the processing of range queries, but may tend to cause workload to be concentrated on particular partitions. Groups of partitions may be expanded and collapsed based on detection of disproportionate workload. Disproportionate write workload may be distributed among a group of partitions that can subsequently be queried using a federated approach. Disproportionate read workload may be distributed among a group of read-only replicated partitions.