Auto-generated Partition Key for Balanced Distributed Database Storage

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Distributed databases often face issues with unbalanced data distribution among nodes due to hash-based key mapping techniques, leading to inefficient storage and retrieval operations.

Innovation Solution

Implementing an application programming interface (API) with automatic node selection and key generation, where a node with suitable capacity is chosen for storing data items, and a key is generated that includes information about the selected node, ensuring balanced data distribution and efficient operations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If hash function mapping is used to determine node selection, then data item storage and retrieval can be performed, but unbalanced data distribution among nodes occurs

Engineering Contradiction:
Improvedata storage and retrieval operationVSAvoiddata distribution balance
Core Design Contradiction:
Ease of operationVSManufacturing precision

Solution Approach 1:

Instead of selecting a node first and then generating a key that maps to it (conventional approach), the patent inverts the process by generating a key first and then selecting a node based on that key's hash value. This inversion allows the system to maintain simple hash-based operations while achieving balanced distribution through intelligent node selection based on current capacity

Inventive Principle:
Principle #13The other way round (Inversion)

Solution Approach 2:

The patent changes the parameter used for node selection from purely hash-based deterministic mapping to a dynamic selection process that considers both the hash value of the key and the current capacity status of nodes. This parameter change enables the system to adapt to changing load conditions while maintaining operational simplicity

Inventive Principle:
Principle #35Parameter changes

2Manufacturing precision

If automatic node selection and key generation are implemented, then balanced data distribution is achieved, but system complexity increases

Engineering Contradiction:
Improvedata distribution balanceVSAvoidnode selection and key generation system
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The system performs self-service by automatically monitoring its own capacity distribution across nodes and autonomously making decisions about key generation and node selection. This eliminates the need for external intervention or complex manual balancing mechanisms, achieving balanced distribution through self-regulating automatic processes

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent implements feedback mechanisms where the system continuously monitors capacity utilization across nodes and uses this feedback information to dynamically adjust key generation and node selection decisions. This feedback loop enables the system to maintain balanced distribution automatically without requiring complex external control systems

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11860819B1Auto-generation of partition key
Publication Date: 2024.01.02 AMAZON TECH INC
  • US11860819B1 patent drawing
  • US11860819B1 patent drawing
  • US11860819B1 patent drawing

AI summary

A distributed database may comprise a plurality of nodes maintaining a collection of data items indexed by key values. Upon receiving a request to store a data item, a node of the database may be selected based on the node's suitability for storing the data item. The distributed database may generate a key to identify the data item, such that the generated key identifies the data item and comprises information indicative of the selected node. The distributed database may provide the generated key to an application programming interface client in response to the request.