Asynchronous Distributed Lock Interfaces for Consistent State Management

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Distributed computing systems face challenges in scaling to meet growing demand and maintaining consistency across geographically dispersed segments, leading to potential communication isolation and inconsistent system behavior, particularly due to network failures and the complexity of coordinating state information across multiple nodes.

Innovation Solution

A distributed state manager (DSM) is implemented to provide asynchronous and idempotent locking mechanisms, transactional watch mechanisms, and versioned read-only caches, ensuring consistent state management and efficient communication across nodes through consensus protocols and queue-for-lock APIs, which facilitate reliable lock acquisition and release, and reduce network overhead.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If distributed systems use traditional polling techniques to share state information, then all nodes can maintain a consistent view of system state, but the networking and computation overheads grow to unsustainable levels

Engineering Contradiction:
Improveconsistency of system stateVSAvoidnetworking and computation overhead
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent introduces an intermediary notification mechanism that acts as a mediator between state-changing operations and interested nodes. Instead of all nodes polling each other, a centralized notification system receives state change notifications and selectively propagates them to relevant nodes, dramatically reducing the O(n²) communication overhead of traditional polling while maintaining consistency.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system implements self-service by allowing nodes to register their specific interests in state changes. Each node subscribes only to the state information it needs, and the notification mechanism automatically delivers relevant updates without requiring active polling or manual intervention from each node, reducing overall system overhead.

Inventive Principle:
Principle #25Self-service

2Reliability

If distributed systems coordinate actions across widely distributed actors, then system-wide consistency can be achieved, but the complexity of coordination increases significantly

Engineering Contradiction:
Improvesystem-wide consistencyVSAvoidcoordination complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The notification mechanism serves as a coordination intermediary that simplifies the complex task of maintaining system-wide consistency. Instead of implementing complex distributed consensus protocols, the patent uses a centralized notification hub that automatically manages the propagation of state changes, reducing coordination complexity while ensuring all nodes receive consistent updates.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system implements feedback mechanisms where nodes can register interest in specific state changes and receive targeted notifications. This selective feedback approach allows the system to maintain consistency by ensuring all relevant nodes are notified of state changes, while reducing unnecessary communication overhead by only notifying nodes that have expressed interest in particular state aspects.

Inventive Principle:
Principle #23Feedback

3Reliability

If distributed systems implement locking mechanisms to prevent inconsistent data modification, then data integrity can be maintained, but the risk of deadlocks and network overhead increases

Engineering Contradiction:
Improvedata integrityVSAvoiddeadlock risk and network overhead
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The notification mechanism acts as an intermediary that reduces the need for complex distributed locking protocols. By centrally managing state change notifications and propagating them selectively, the system可以减少 the coordination overhead and deadlock risks associated with traditional distributed locking, while still maintaining data integrity through controlled access to state changes.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10116766B2Asynchronous and idempotent distributed lock interfaces
Publication Date: 2018.10.30 AMAZON TECH INC
  • US10116766B2 patent drawing
  • US10116766B2 patent drawing
  • US10116766B2 patent drawing

AI summary

Methods and apparatus for distributed locking interfaces are disclosed. A state manager implements programmatic interfaces for distributed locking operations. In response to a queue-for-lock request for a registry element received via an interface, the state manager provides to the requester, a reference to a first asynchronous computation. The first asynchronous computation comprises an insertion of a lock request into a queue of waiters for a lock on the element. In response to a blocking request for a result of the computation, the state manager transmits, after the lock request has been inserted into the queue of waiters, a notification of the insertion of the request. The notification in turn includes a reference to a second asynchronous computation. The second asynchronous computation comprises a grant of the lock on the particular element to the requester.