Distributed Logging EntryID Sorting Buffer

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Maintaining data consistency and reducing latency in distributed logs replicated across multiple servers is challenging due to the need for strict serialization of write operations, which increases latency and reduces bandwidth.

Innovation Solution

Allowing out-of-order write operations with in-order responses by allocating unique EntryIDs for log entries, enabling efficient organization and batch processing, thus facilitating fast and efficient write operations while maintaining log consistency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If strict serialization of write operations is enforced to maintain log consistency, then data consistency is improved, but latency increases and bandwidth reduces

Engineering Contradiction:
Improvelog consistencyVSAvoidlatency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent segments the write operation into two independent phases: (1) asynchronous write acceptance that immediately returns acknowledgment, and (2) background sorting and replication. This segmentation allows the system to accept writes without waiting for consistency verification, thereby reducing latency while maintaining eventual consistency through the sorting buffer mechanism.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a sorting buffer as an intermediary data structure between the write operation and the replication process. This buffer temporarily holds out-of-order writes and sorts them by EntryID before replication, acting as a mediator that enables asynchronous writes while ensuring in-order consistency during replication without blocking the immediate write acknowledgment.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If strict serialization of write operations is enforced to maintain log consistency, then data consistency is improved, but bandwidth reduces

Engineering Contradiction:
Improvelog consistencyVSAvoidbandwidth
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the write operation into two independent phases: (1) asynchronous write acceptance that immediately returns acknowledgment, and (2) background sorting and replication. This segmentation allows the system to accept writes without waiting for consistency verification, thereby reducing latency while maintaining eventual consistency through the sorting buffer mechanism.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent enables continuous acceptance of write operations without interruption for sorting or replication. Multiple writes can be accepted concurrently and continuously, with the sorting and replication happening continuously in the background. This continuous operation maximizes bandwidth utilization while maintaining consistency through the sorting buffer.

Inventive Principle:
Principle #20Continuity of useful action

3Loss of time

If out-of-order write operations are allowed, then latency is reduced and bandwidth increases, but log consistency becomes difficult to maintain

Engineering Contradiction:
ImprovelatencyVSAvoidlog consistency
Core Design Contradiction:
Loss of timeVSReliability

Solution Approach 1:

The patent performs preliminary assignment of sequential EntryIDs to writes at the time of write acceptance, before sorting and replication. This preliminary action establishes the correct chronological order upfront, allowing out-of-order transmission while ensuring that the original sequence is preserved during replication through sorting by EntryID, thus maintaining consistency without blocking writes.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces a sorting buffer as an intermediary data structure between the write operation and the replication process. This buffer temporarily holds out-of-order writes and sorts them by EntryID before replication, acting as a mediator that enables asynchronous writes while ensuring in-order consistency during replication without blocking the immediate write acknowledgment.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10158642B2Coherent distributed logging
Publication Date: 2018.12.18 SALESFORCE INC
  • US10158642B2 patent drawing
  • US10158642B2 patent drawing
  • US10158642B2 patent drawing

AI summary

Log entries are provided with unique entry identifiers, which may be sequenced in an incremental or decremental order, to create or to update a distributed log which may be replicated and distributed to multiple servers in a network. The entry identifiers may be appended to their respective log entries. Files, records or data which are identified by their respective log entries may be transmitted regardless of the sequence of the entry identifiers.