Global Clock System for Consistent Distributed Data Queries

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In distributed data systems, achieving a consistent view of data across multiple locations where independent updates are performed on different partitions is challenging, as existing techniques often impede performance or fail to provide reliable consistency.

Innovation Solution

Implementing a global clock system that provides consistent points across a distributed data set, allowing nodes to agree on consistency points and ensuring that updates and queries are processed based on global clock values, thereby maintaining consistent indexes, views, or projections of the data set.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If data is distributed across multiple locations for scaling storage or processing capacity, then the storage capacity and processing capacity are improved, but obtaining a consistent view of the data becomes challenging

Engineering Contradiction:
Improvestorage capacityVSAvoiddata consistency
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The patent segments the distributed data system into multiple independent nodes, each maintaining local partitions of the data set. Each node operates autonomously with its own local clock, allowing parallel processing and storage scaling while the segmentation enables independent updates without blocking other nodes. This resolves the contradiction by allowing both increased storage capacity through distribution and maintained consistency through the global clock coordination mechanism.

Inventive Principle:
Principle #1Segmentation

2Productivity

If independent updates are performed on different partitions by each location, then the processing capacity and update speed are improved, but data consistency across the distributed system deteriorates

Engineering Contradiction:
Improveupdate speedVSAvoiddata consistency
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent implements a feedback mechanism where each node reports its local updates and clock values to a global clock service. The global clock service processes these updates, determines the latest global clock value, and feeds this information back to all nodes. This feedback loop ensures that all nodes have consistent knowledge of the latest data state across the distributed system, resolving the consistency issue while allowing independent parallel updates to continue at high speed.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The global clock service acts as an intermediary between distributed nodes performing independent updates. Rather than requiring direct coordination between all pairs of nodes, the intermediary global clock service receives update information from all nodes, processes it centrally, and distributes consistency information back to all nodes. This intermediary mechanism maintains data consistency while allowing high-speed independent updates at each node.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If techniques are used to provide consistent views of distributed data, then data consistency is improved, but the performance of updates is impeded

Engineering Contradiction:
Improvedata consistencyVSAvoidupdate performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies preliminary action by having each node continuously maintain its local clock and update state, and by having the global clock service continuously process update information and determine latest global clock values. This preliminary preparation means that when a node needs to read data, the consistency information is already available, eliminating the need for blocking operations during read operations and maintaining high update performance while ensuring consistency.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS11940990B1Global clock values for consistent queries to replicated data
Publication Date: 2024.03.26 AMAZON TECH INC
  • US11940990B1 patent drawing
  • US11940990B1 patent drawing
  • US11940990B1 patent drawing

AI summary

Consistent queries to replicated data may be performed according to global clock values. Time values for updates performed at a data set may be identified according to a global clock. The updates may be replicated to a replicated portion of a data set. Queries directed to the replicated portion of the data set may be performed in response to determining that the time values for updates indicate that the replicated portion of the data set is consistent with a time value identified for the query according to the global clock.