Outbox Message Bus Replication for Ordered Database Sync

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing data replication systems face challenges in maintaining data availability, efficiency, and reliability due to add-on services, management difficulties, and downtime, especially when ordered replication is required.

Innovation Solution

An integrated data replication system using a persistence service and replication service that interacts with a message bus to handle ordered and un-ordered alterations, ensuring efficient and reliable data replication across multiple databases.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If data is copied between different databases in different regions, then data availability is improved, but system complexity and management difficulty increase

Engineering Contradiction:
Improvedata availabilityVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system divides data replication into two distinct segments: ordered alterations that maintain strict consistency across databases, and un-ordered alterations that allow flexible replication. This segmentation resolves the contradiction by enabling data availability through regional copying while managing complexity through differentiated replication strategies for different data types.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system dynamically selects replication behavior based on alteration type. Ordered alterations trigger synchronized replication across all databases, while un-ordered alterations allow asynchronous replication. This dynamic approach improves data availability while reducing management complexity by adapting replication intensity to data requirements.

Inventive Principle:
Principle #15Dynamics

2Reliability

If ordered replication is implemented to ensure data consistency, then data reliability is improved, but replication speed and efficiency decrease

Engineering Contradiction:
Improvedata consistencyVSAvoidreplication efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system segments alterations into ordered and un-ordered categories, applying strict consistency protocols only to ordered alterations while allowing efficient asynchronous replication for un-ordered alterations. This segmentation maintains data consistency where required while preserving replication efficiency for non-critical data.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

Different replication quality levels are applied locally based on alteration type. Ordered alterations receive high-quality synchronized replication to ensure consistency, while un-ordered alterations receive lower-quality asynchronous replication for efficiency. This local quality differentiation resolves the contradiction between reliability and productivity.

Inventive Principle:
Principle #3Local quality

3Adaptability or versatility

If add-on services are used for data replication, then replication functionality is provided, but ease of operation and management difficulty worsen

Engineering Contradiction:
Improvereplication functionalityVSAvoidmanagement ease
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The system merges the replication functionality directly into the database core architecture, eliminating the need for separate add-on services. The database engine natively supports both ordered and un-ordered replication, providing versatile replication functionality while simplifying management through unified native support rather than multiple external components.

Inventive Principle:
Principle #5Merging (Combining)

4Reliability

If data is replicated across multiple regions, then data accessibility is improved, but downtime and failure scenarios increase

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

Solution Approach 1:

The system performs preliminary classification of alterations into ordered and un-ordered categories before replication. This preliminary action enables the system to prepare appropriate replication strategies in advance, reducing downtime by immediately applying the correct replication mode when failures or accessibility issues occur, rather than determining the approach during crisis response.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12596724B2Systems and methods for use in replicating data
Publication Date: 2026.04.07 MASTERCARD INT INC
  • US12596724B2 patent drawing
  • US12596724B2 patent drawing
  • US12596724B2 patent drawing

AI summary

Systems and methods are provided for replicating data between different services used to update databases. One example system includes a database and a computing device coupled in communication with the database, wherein the computing device is configured to perform a create, update or delete operation on the data included in the database and to post an entry representative of the operation to an outbox data structure. The computing device is also configured to retrieve the entry from the outbox data structure; publish the entry as a first message to a message bus, thereby informing a different data system of the operation in the database; receive a second message from the message bus indicative of a create, update or delete operation at a database included in a different data system; and direct a service of the system to perform the create, update or delete operation of the second message.