Durability Marker Advancement for Ordered Log Record Batches

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database systems with write-heavy workloads face significant latency issues due to the overhead and coordination problems introduced by variable batch sizes in grouping log records for processing, which can be exacerbated by the use of batching techniques.

Innovation Solution

Implementing shared memory communication using a circular buffer to perform writes in a streaming fashion, allowing multiple threads to write and read concurrently, reducing latency and improving throughput.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If batching techniques are used to group log records for processing, then processing efficiency is improved, but latency increases due to overhead and coordination problems from variable batch sizes

Engineering Contradiction:
Improveprocessing efficiencyVSAvoidlatency
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent segments the log processing system into distinct components: a log record batcher that groups records into fixed-size batches, and a separate processing engine that handles batches uniformly. This segmentation eliminates the coordination overhead of variable batch sizes while maintaining the efficiency benefits of batch processing.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a dynamic batching mechanism where the batcher continuously accepts log records and automatically forms fixed-size batches when thresholds are met. This dynamic approach allows the system to adapt to varying workload rates while maintaining consistent batch processing characteristics, reducing latency variability.

Inventive Principle:
Principle #15Dynamics

2Adaptability or versatility

If variable batch sizes are used for grouping log records, then adaptability to different workload rates is improved, but coordination problems and overhead increase

Engineering Contradiction:
Improveadaptability to workload ratesVSAvoidcoordination overhead
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent employs a preliminary action strategy by pre-defining fixed batch sizes and processing thresholds before operation begins. The batcher is configured with predetermined parameters for batch formation, eliminating the need for runtime coordination decisions about batch sizing. This preliminary configuration reduces coordination overhead while maintaining adaptability through configurable parameters.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12561311B1Advancing a durability marker for a log according to ordered log record batches
Publication Date: 2026.02.24 AMAZON TECH INC
  • US12561311B1 patent drawing
  • US12561311B1 patent drawing
  • US12561311B1 patent drawing

AI summary

A durability marker may be advanced according to ordered batches of log records. Different batches of log records may be sent to a distributed data store to update a log stored in the distributed data store. The different batches may be ordered according to a minimum Log Sequence Number (LSN) value within the different batches. The ordered different batches may be used to determine whether and how much to advance a durability marker for the log.