Zonal Consistency Model for Sharded Database Systems

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Cloud computing platforms face latency issues due to cross-availability zone traffic when handling read and write operations for database tables replicated across multiple zones, which affects the performance of applications accessing these databases.

Innovation Solution

Implementing a zonal consistency model that routes operations to request routers and storage nodes within the same availability zone as the client device, using a mixed-mode replication protocol that combines timestamp-based and consensus-based protocols to maintain consistency and resolve conflicts, thereby optimizing performance by reducing cross-zone latency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If data is replicated across multiple availability zones for high availability and durability, then reliability is improved, but latency increases due to cross-zone traffic

Engineering Contradiction:
Improvedata durabilityVSAvoidlatency
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent implements zonal consistency model where each availability zone maintains local copies of database partitions. Read and write operations are routed to storage nodes within the same availability zone as the client, enabling local processing without cross-zone traffic. This local quality approach ensures that frequently accessed data remains locally available while maintaining durability through replication across zones.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The database system segments data into partitions that are independently replicated across different availability zones. Each zone operates semi-autonomously with its own storage nodes handling local operations. This segmentation allows the system to maintain high availability through distributed replication while reducing latency by keeping operations local to their originating zone.

Inventive Principle:
Principle #1Segmentation

2Loss of time

If operations are routed to storage nodes in the same availability zone as the client, then latency is reduced, but consistency maintenance becomes more complex

Engineering Contradiction:
ImprovelatencyVSAvoidconsistency protocol complexity
Core Design Contradiction:
Loss of timeVSDevice complexity

Solution Approach 1:

The patent introduces request routers as intermediary components that manage the complexity of consistency maintenance. These routers receive client requests, determine the appropriate availability zone and storage node routing, and coordinate cross-zone replication operations. By placing this coordination logic in the router layer rather than in each storage node, the system reduces latency for local operations while centralizing the complexity of consistency management.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system dynamically selects between different consistency models (eventual consistency, strong consistency, and zonal consistency) based on the specific operation and client requirements. This dynamic approach allows the system to optimize for latency when using zonal consistency for local operations while falling back to stronger consistency models when needed, thereby managing complexity adaptively rather than statically.

Inventive Principle:
Principle #15Dynamics

3Productivity

If zonal consistency model is implemented with local processing, then productivity is improved, but conflict resolution mechanisms become more complex

Engineering Contradiction:
Improveoperation throughputVSAvoidconflict resolution complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent resolves write conflicts by changing the parameter used for conflict resolution from traditional vector clocks or conflict-free replicated data types (CRDTs) to simple timestamp-based ordering. Each write operation includes a timestamp, and conflicts are resolved by comparing timestamps to determine which write is more recent. This parameter change simplifies the conflict resolution mechanism while maintaining correctness, thereby improving productivity without excessive complexity.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11809404B1Mixed-mode replication for sharded database systems
Publication Date: 2023.11.07 AMAZON TECH INC
  • US11809404B1 patent drawing
  • US11809404B1 patent drawing
  • US11809404B1 patent drawing

AI summary

Techniques are described for enabling a database service to provide a zonal consistency model for read and write operations involving database tables replicated across a plurality of availability zones of a cloud provider network according to some embodiments. A database service routes zonally consistent operations to request routers and storage nodes that are located in a same availability zone as the client device from which the request originates. For example, in contrast to standard write operations and strongly consistent read operations, which are processed by a leader storage node that may be located in a different availability zone than the originating request, zonally consistent operations can be processed by any storage node and, in particular, by a storage node in a same availability zone as the originating client device.