Director-Based Database Transaction Consistency via Timestamp Intermediary

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Cloud-based database systems face challenges in maintaining transactional consistency and performance due to the use of cheaper, less reliable hardware, which can lead to server slowdowns and transactional inconsistencies as the number of database nodes increases.

Innovation Solution

Implementing a system with worker nodes that interact with director nodes to ensure transactional consistency, where worker nodes send requests to a majority of director nodes for approval before proceeding with transactions, and using assistant nodes to mitigate the effects of slowdowns by providing responses on behalf of slow worker nodes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If cheaper hardware is used to reduce costs, then device complexity and cost are reduced, but reliability and performance stability deteriorate due to unpredictable server slowdowns

Engineering Contradiction:
Improvehardware costVSAvoidperformance stability
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The patent introduces a timestamp intermediary mechanism that mediates between worker nodes and director nodes. Each node operates with its own local timestamp without needing to synchronize with others, allowing slower nodes to catch up without blocking the system. This intermediary timestamp system resolves the contradiction by enabling reliable transactional consistency even when hardware performance varies unpredictably.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system dynamically adjusts to varying hardware performance by allowing nodes to operate independently at their own speed. The timestamp-based coordination mechanism adapts to each node's performance characteristics, enabling the system to maintain reliability despite dynamic changes in hardware speed and responsiveness.

Inventive Principle:
Principle #15Dynamics

2Reliability

If more director nodes are added to ensure transactional consistency, then reliability is improved, but device complexity and communication overhead increase

Engineering Contradiction:
Improvetransactional consistencyVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts the complex timestamp synchronization logic from the interaction between director nodes and worker nodes. Each node maintains its own independent timestamp without needing to communicate synchronization details to others. This extraction simplifies the system architecture while maintaining transactional consistency across multiple director nodes.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

Each director node and worker node independently manages its own timestamp without requiring coordination or communication about timestamp synchronization. Nodes serve themselves by generating and maintaining their own timestamps, which eliminates the need for complex inter-node synchronization protocols and reduces overall system complexity.

Inventive Principle:
Principle #25Self-service

3Reliability

If strict transactional consistency protocols are enforced, then reliability is improved, but productivity decreases due to system slowdowns when waiting for director node approvals

Engineering Contradiction:
Improvetransactional consistencyVSAvoidtransaction processing speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

Worker nodes perform preliminary actions by generating and recording timestamps locally before needing confirmation from director nodes. This preliminary timestamp creation allows workers to prepare transaction data without blocking, and director nodes can quickly validate timestamps without complex synchronization, thereby maintaining both consistency and productivity.

Inventive Principle:
Principle #10Preliminary action

4Adaptability or versatility

If cloud-based hardware is used to improve scalability and reduce costs, then ease of manufacture and adaptability are improved, but reliability deteriorates due to unpredictable server behavior and slowdowns

Engineering Contradiction:
Improvecloud scalabilityVSAvoidtransactional consistency
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent segments the timestamp management function from the transaction processing function. Each cloud-based node independently manages its own timestamp segment without relying on other nodes for synchronization. This segmentation allows the system to scale to many cloud nodes while maintaining reliability, as each segment operates independently but contributes to the overall consistent system state.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12061526B2History information in director-based database system for transactional consistency
Publication Date: 2024.08.13 SALESFORCE INC
  • US12061526B2 patent drawing
  • US12061526B2 patent drawing
  • US12061526B2 patent drawing

AI summary

Techniques are disclosed relating to a database system includes worker nodes operable to perform transactions and director nodes operable to ensure transactional consistency for the transactions. A worker node may receive a request to perform a transaction involving writing a record. The worker node may then issue, to director nodes of the database system, a request for information that facilitates performance of an operation for the transaction. A director node may determine whether to approve the request based on whether the operation could cause transactional inconsistency in the database system. The worker node may proceed to perform the operation for the transaction in response to receiving approval responses from a majority of the director nodes, with none of the received responses indicating a disapproval of the transaction.